MCQs
Total Questions : 51
| Page 4 of 6 pages
Answer: Option B. -> Writer
Character streams uses Writer and Reader classes for input & output operations.
Answer: Option C. -> FileInputStream
None
Answer: Option B. -> flush()
none.
Answer: Option A. -> IOException
Both close() and read() method throw IOException.
Answer: Option A. -> InputStream
FileInputStream implements InputStream.
Answer: Option A. -> reverse()
reverse() method reverses all characters. It returns the reversed object on which
it was called.
Answer: Option C. -> -1
Each time read() is called, it reads a single byte from the file and returns the byte
Answer: Option A. -> InputStream
Byte stream uses InputStream and OutputStream classes for input and output operation.
Answer: Option C. -> CharArrayReader
CharArrayReader is an implementation of an input stream that uses character array as a source.
Here array is the input source.
Answer: Option B. -> read()
Each time read() is called, it reads a single byte from the file and returns the byte as