Quiz On IO Streams
Quiz On IO Streams
This is a practice quiz. The results are not recorded anywhere and do not affect
your grade. The questions on this quiz might not appear in any quiz or test that
does count toward your grade.
Instructions: For each question, choose the single best answer. Make your choice
by clicking on its button. You can change your answers at any time. When the quiz
is graded, the correct answers will appear in the box after each question.
7. A stream that is intended for general purpose IO, not usually character data, is
called...
a. Reader
b. Writer
c. Byte Stream
d. Character Stream
8. What is the name of the abstract base class for streams dealing with character
input?
a. InputStream
b. OutputStream
c. Reader
d. Writer
9. Is the character data used inside a Java program exactly the same format as the
character data in a text file written by Java?
a. No. Internally Java uses 8-bit character data, but text files always use ASCII.
b. No. Internally Java programs always use 16-bit char data; but text files are written
in UTF format, which is different.
c. Yes. Java uses the same format for characters inside a program and in text files.
d. Yes. Character data has always used the same format for all computers and all files.
10. What is the name of the abstract base class for streams dealing with general
purpose (non-character) input?
a. InputStream
b. OutputStream
c. Reader
d. Writer