Big Java Binder Early Objects

Computing

Quiz 20 :

Streams and Binary Inputoutput

Quiz 20 :

Streams and Binary Inputoutput

Question Type
search
arrow
Which line completes this code fragment to define a text file named txtfile for reading? ____________________________________________________ String line = scan.nextLine();
Free
Multiple Choice
Answer:

Answer:

D

Tags
Choose question tag
close menu
arrow
Which of the following statements enables you to write output to a text file?
Free
Multiple Choice
Answer:

Answer:

B

Tags
Choose question tag
close menu
arrow
Which class is used for input of text data?
Free
Multiple Choice
Answer:

Answer:

A

Tags
Choose question tag
close menu
arrow
Which of the following reads binary data from a disk file?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
You use _________ and FileOutputStream objects to write data to a disk file in text or binary form respectively.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Which file storage method is in human-readable form?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
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
Answer:
Tags
Choose question tag
close menu
arrow
The ____ class is used when writing text files.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Which file storage method stores data in bytes?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
A byte is composed of ____ bits and can denote ____ values.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
To read text data from a disk file, you should create a(n) ____________________ object.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Which line completes this code fragment so it creates a text file called "mychars.txt" and writes the characters 'A', 'B', and 'C' into the file? _____________________ Fw)write('A'); Fw)write('B'); Fw)write('C');
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Readers and writers access sequences of ____.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Streams access sequences of ____.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
When constructing a Scanner from a File object, the Scanner automatically constructs a ___________.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
In text format, data items are represented in human-readable form, as a sequence of ____________________.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
If you store information in binary form, as a sequence of bytes, you will use the ____ class(es) and their subclasses.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Which class is used for input of binary data?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Which class is used for input of text data from a file?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
In Java, the simplest mechanism for reading text is to use the ____ class.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
Showing 1 - 20 of 82