Exam 13: File Input and Output
Exam 1: Creating Your First Java Classes76 Questions
Exam 2: Using Data81 Questions
Exam 3: Using Methods, Classes and Objects79 Questions
Exam 4: More Object Concepts84 Questions
Exam 5: Making Decisions80 Questions
Exam 6: Looping77 Questions
Exam 7: Characters, Strings and the Stringbuilder82 Questions
Exam 8: Arrays77 Questions
Exam 9: Advanced Array Concepts80 Questions
Exam 10: Introduction to Inheritance78 Questions
Exam 11: Advanced Inheritance Concepts78 Questions
Exam 12: Exception Handling79 Questions
Exam 13: File Input and Output78 Questions
Exam 14: Introduction to Swing Components79 Questions
Exam 15: Using Javafx and Scene Builder65 Questions
Select questions type
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)
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)
____ 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:
Premises:
Responses:
(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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)