Object Oriented Programming - I (3140705) MCQs

MCQs of Binary I/O ,Recursion and Generics

Showing 31 to 34 out of 34 Questions
31.
To achieve performance, the DataInputStream class comes with some special methods like?
(a) WriteDouble()
(b) WriteInt()
(c) WriteBytes()
(d) None of the above
Answer:

Option (d)

32.
Which method of DataInputStream class reads a line from the file and returns it as a string ?
(a) WriteInt()
(b) readLine()
(c) readInt()
(d) writeDouble()
Answer:

Option (b)

33.
Java application uses an output stream to read data from a source, it may be a file, an array, peripheral device or socket?
(a) TRUE
(b) FALSE
Answer:

Option (b)

34.
Both InputStream and OutputStream class is an abstract class. It is the superclass of all classes representing an output stream of bytes.
(a) TRUE
(b) FALSE
Answer:

Option (a)

Showing 31 to 34 out of 34 Questions