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
If we want to write objects to a file, what type of object should be passed to the ObjectOutputStream constructor?
(Multiple Choice)
4.8/5
(41)
Which is an advantage of storing numbers in binary format?
i.fast access
II.less storage needed
III.easy to read in a text editor
(Multiple Choice)
4.9/5
(34)
In which of the following modes can a RandomAccessFile be opened?
i.r
II.rw
III.w
(Multiple Choice)
5.0/5
(34)
What type of object describes the location of a file or directory?
(Multiple Choice)
4.8/5
(35)
How many methods are required to implement the Serializable interface?
(Multiple Choice)
4.9/5
(28)
Fill in the blank in the following code snippet to create an object for reading binary data from a disk file, named input.bin?
try (______________________________)
{
Process input
}
(Multiple Choice)
4.8/5
(35)
Which is not a method available in the RandomAccessFile class?
(Multiple Choice)
4.8/5
(31)
Fill in the blank in the following code snippet that displays the java files in the current directory.

(Multiple Choice)
4.8/5
(41)
What is returned by the read method when a FileInputStream has reached the end of the file?
(Multiple Choice)
4.9/5
(26)
Showing 81 - 90 of 90
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)