Unit-4
I. Each Question Carries 1 Mark.
1) The properties of the file is present in the class
a) File b) File Stream c) File Data d) None
2) A stream is a path traveled by _____ in a program.
a) object b) data c) both d) None
3) __________ package contains collection of stream classes.
a) java.applet b) java.io.* c) java.awt.* d) None
4) Streams are divided into ______ types
a) 1 b) 3 c) 2 d) None
5) System. in is ______________.
a) input steam b) output stream c) error stream d) None
6) System.out is __________
a) input steam b) output stream c) error stream d) None
7) System.error is ________.
a) input steam b) output stream c) error stream d) None
8) Reader and Writer are _________
a) interfaces b) packages c) abstract classes d) None
9) Character streams are allows to deals with ______data
a) binary b) graphics c) text d) None
10) Bytes streams are allows to deals with ________data.
a) binary b) graphics c) text d) None
11) Unicode character set for bytes streams limited to the ISO_Latin_1 8 bytes
a) False b) True
12) A read() method allows to read the data
a) False b) True
13) A write () method allows writing the data
a) False b) True
14) we use __________method to close the stream
a) Destroy b) quit c) close d) none
15) A Data input stream is create with File Input Stream constructor
a) True b) False
16) FileWriter is subclass of OutputStreamWriter
a) False b) True
17) Converting between bytes and character we use
a) bytes streams b) character streams c) Both d) None
18) InputstreamReader, outputstreamreader are belongs to
a) bytes streams b) character streams c) both d) None
19) Datainputstream, Dataoutputstream are provides
a) Filetering b) data conversion c) both d) None
20) To read integer value we use__________method
a) readByte() b) readInteger() c) readInt( ) d) None
I. Answer – 1 Mark.
1. A 2. B 3. B, C 4. C 5. A 6. B 7. B
8. C 9. C 10. C 11. C 12. B 13. B 14. C
15.B 16. B 17. B 18. B 19. B 20. C