Exam 21: Advanced Input/Output
Exam 1: Introduction76 Questions
Exam 2: Using Objects82 Questions
Exam 3: Implementing Classes108 Questions
Exam 4: Fundamental Data Types124 Questions
Exam 5: Decisions119 Questions
Exam 6: Loops107 Questions
Exam 7: Arrays and Array Lists117 Questions
Exam 8: Designing Classes88 Questions
Exam 9: Inheritance99 Questions
Exam 10: Interfaces100 Questions
Exam 11: Input/Output and Exception Handling108 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion99 Questions
Exam 14: Sorting and Searching100 Questions
Exam 15: The Java Collections Framework102 Questions
Exam 16: Basic Data Structures102 Questions
Exam 17: Tree Structures102 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Stream Processing85 Questions
Exam 20: Graphical User Interfaces75 Questions
Exam 21: Advanced Input/Output90 Questions
Exam 22: Multithreading81 Questions
Exam 23: Internet Networking74 Questions
Exam 24: Relational Databases75 Questions
Exam 25: XML74 Questions
Select questions type
A file pointer is a position in a random access file.Because files can be very large, the file pointer is of type _______.
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
C
A byte is composed of ____ bits and can denote ____ values.
Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
A
A Caesar cipher uses a shift of each character by a key with a value between 1 and 255.An a with a shift of 3 becomes a d.A z with a shift of 3 would become a c, wrapping around the alphabet.Which is the encryption of shadow for a key = 3?
Free
(Multiple Choice)
5.0/5
(30)
Correct Answer:
B
Which of the following cannot be serialized?
i.ArrayList<String>
II.String
III.Integer
(Multiple Choice)
4.7/5
(36)
__________ access allows file access at arbitrary locations, without first reading the bytes preceding the access location.
(Multiple Choice)
4.9/5
(42)
Which code reads an array of Student objects from a file named studentFile.bin? We ignore exceptions in this problem.
(Multiple Choice)
4.7/5
(40)
If serializing object obj requires 12 bytes, how many bytes are required to serialize obj 3 times?
(Multiple Choice)
4.9/5
(34)
What is the lowest value for a signed (negative and positive) byte?
(Multiple Choice)
4.9/5
(45)
Which expression determines whether there is a configuration file named config.txt?
(Multiple Choice)
4.9/5
(34)
The two IO classes used for serialization are _______ and ________.
(Multiple Choice)
4.8/5
(32)
Which of these classes access sequences of characters?
i.readers
II.writers
III.streams
(Multiple Choice)
4.9/5
(50)
Assume we have a RandomAccessFile object, file, which stores a set of records of class MyData, each needing MyData.RECORD_SIZE bytes for storage.Which expression calculates the number of records in the file?
(Multiple Choice)
4.8/5
(37)
Based on the code below, the statement that would move the file pointer to byte n counted from the beginning of the file is ___________________.
RandomAccessFile test = new RandomAccessFile("record.bat", "r");
(Multiple Choice)
4.7/5
(49)
If you access and store information in binary form in files, you will use the ____ class(es).
(Multiple Choice)
4.9/5
(40)
Showing 1 - 20 of 90
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)