Exam 13: File Input and Output

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

A(n) ____ field is the field in a record that makes the record unique from all others.

(Multiple Choice)
4.8/5
(30)

Java's Path class is used to create objects that contain information about files and directories, while the Files class performs operations on files and directories.

(True/False)
4.8/5
(36)

Briefly describe the ByteBuffer class.

(Essay)
4.7/5
(36)

A data file can be used as a(n) ____ file when each record is accessed one after another in the order in which it was stored.

(Multiple Choice)
5.0/5
(42)

Which of the following statements will write a line separator?

(Multiple Choice)
5.0/5
(35)

A(n) ____ is a collection of fields that contain data about an entity.

(Multiple Choice)
4.8/5
(35)

Random files are also called ____ files.

(Multiple Choice)
4.8/5
(31)

____ applications require that a record be accessed immediately while a client is waiting.

(Multiple Choice)
4.8/5
(34)

writer.write(names, 0, names.length()); The above code represents a write() method of the BufferedWriter class. Describe the purpose of the method and how it accepts the String characters.

(Essay)
4.9/5
(31)
Match each term with the correct statement below.
Premises:
Involves performing the same tasks with many records
Responses:
System.getProperty("line.separator")
batch processing
absolute path
Correct Answer:
Verified
Premises:
Responses:
Involves performing the same tasks with many records
System.getProperty("line.separator")
(Matching)
4.8/5
(32)

Any of the file input or output methods in a Java program might throw an exception, so all the relevant code in the class is placed in a ____ block.

(Multiple Choice)
4.9/5
(27)

An array of bytes can be wrapped, or encompassed, into a ByteBuffer using the ByteBuffer ____ method.

(Multiple Choice)
4.9/5
(40)

When you use the BufferedReader class, you must import the ____ package into your program.

(Multiple Choice)
4.7/5
(31)

You can create a writeable file by using the Files class ____ method.

(Multiple Choice)
4.9/5
(28)

A file channel is ____, meaning you can search for a specific file location and operations can start at any specified position.

(Multiple Choice)
4.7/5
(31)

Java lets you assign a file to a(n) ____ object so that screen output and file output work in exactly the same manner.

(Multiple Choice)
4.7/5
(35)

What is the difference between volatile and nonvolatile storage in Java programming? Give examples of different storage situations.

(Essay)
4.9/5
(29)

After you create a FileSystem object, you can define a Path using the ____ method with it.

(Multiple Choice)
4.8/5
(36)

The String class ____ method accepts an argument that identifies the field delimiter and returns an array of String s.

(Multiple Choice)
4.8/5
(37)

Comma-separated values (CSV) is a file format strictly used for working with Java and databases.

(True/False)
4.8/5
(33)
Showing 41 - 60 of 78
close modal

Filters

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