Exam 21: Advanced Input/Output

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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. 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)

Objects are saved in ___________ format in object streams.

(Multiple Choice)
4.8/5
(46)
Showing 81 - 90 of 90
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)