Java Input Output

Pre Test

1) Which of these methods are not included in OutputStream class.....
write
skip()
close()
flush()

2) The class DataInputStream extends ....... and implements the interface DataInput.
FileInputStream
SequenceInputStream
FilterInputStream
InputStream

3) The method ..... force writes whenever the data accumulates in the output stream
write()
flush()
read()
reset()

4) The DataInputStream and DataOutputStream classes are..... streams that allow the reading and writing of java primitve data types.
file
sequence
object
filter

5) The..... class provides the capacity to read primitive data types from an input streams.
PushbackInputStream
DataInputStream
BufferedInputStream
PipeInputStream

6) Which of these is a type of stream in Java .....
Integer stream
short stream
Byte stream
long stream

7) Which exception is thrown by the read() method of InputStream Class.
Exception
IOException
ReadException
None

8) ...... streams provide functionally for threads to communicate and exchange data between them
object
piped
pushback
filtered

Number of score out of 8 = Score in percentage =