Exam 15: Files, Streams and Object Serialization

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

Files static method ________ receives a Path and returns a boolean indicating whether that Path represents a directory on disk.

Free
(Multiple Choice)
4.8/5
(45)
Correct Answer:
Verified

B

Adding the services of one stream to another is known as ________.

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

B

A serialized object is ________.

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

A

Which JFileChooser method returns the file the user selected?

(Multiple Choice)
4.8/5
(42)

The ________ abstract classes are Unicode character-based streams.

(Multiple Choice)
4.7/5
(43)

Which statement regarding Java files is false?

(Multiple Choice)
4.9/5
(36)

Records in a sequential file are not usually updated in place. Instead ________.

(Multiple Choice)
4.8/5
(45)

Which of the following classes enable input and output of entire objects to or from a file? A. SerializedInputStream B. SerializedOutputStream C. ObjectInputStream D. ObjectOutputStream E. Scanner F.Formatter

(Multiple Choice)
4.8/5
(37)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(37)

When using an ObjectInputStream to read data from a file, what happens when an end-of-file marker is reached?

(Multiple Choice)
4.9/5
(37)

________ path starts from the directory in which the application began executing.

(Multiple Choice)
4.7/5
(31)

________ is an I/O-performance-enhancement technique-it reduces the number of I/O operations by combining smaller outputs together in memory; the number of physical I/O operations is much smaller than the number of I/O requests issued by the program.

(Multiple Choice)
4.9/5
(46)

How do methods setIn, setOut and setErr affect the standard input, output and error streams?

(Multiple Choice)
4.9/5
(34)

When all the contents of a file are truncated, this means that ________.

(Multiple Choice)
4.8/5
(40)

Streams that input bytes from and output bytes to files are known as ________.

(Multiple Choice)
4.8/5
(44)

Which of the following classes is not used for file input?

(Multiple Choice)
4.9/5
(33)

Class ________ provides static methods for common file and directory manipulations, including methods for copying files; creating and deleting files and directories; getting information about files and directories; reading the contents of files; getting objects that allow you to manipulate the contents of files and directories; and more.

(Multiple Choice)
4.8/5
(43)

Path method ________ returns the String name of a file or directory without any location information.

(Multiple Choice)
4.8/5
(38)

What does the following statement do? Scanner scanner = new Scanner(Paths.get("test.txt"));

(Multiple Choice)
4.9/5
(40)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(30)
Showing 1 - 20 of 26
close modal

Filters

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