You are on page 1of 1

Course: ICE 1201 Object Oriented Design and Programming

Class Test 4
Name: Id: Date:

1. Which of the following can not be source of input in java?


a) Printer b) Network c) Mouse d) Keyboard

2. Character stream are useful when


A) Read binary b) Read bytes array c) Read unicode d) Read data types
objects characters

3. Which of the following is the lower most subclass


a) InputStream b) c) FileInputStream d) DataInputStream
ByteArrayInputStream
4. Which of the following is not a system defined variable
a) in b) out c) print d) err

5. "System.out" here system is a


a) class b) Package c) object d) method
e)
6. While running a program, Windows operating system crash is a
a) Checked b) Unchecke exception c) Error d) None
exception

7. In java exception is a
a) object b) method c) constructor d) array
e)
8. Which of the following is a runtime exception
a) IOException b) SQL Exception c) Arithmetic Excetion d) Assertion

9. If exception is not handled, which of the following is not performed by JVM


a) Identifies the b) Prints out c) Prints the stack d) Causes the program
specific type exception trace to terminate
of exception description
10. Which of the following is wrong for packages -
a) names are case b) the name can be c) the name must be d) packages are separated
sensitive changed easily unique by use of period
11. “If two classes are in different packages and they are not sub classes ,then variables with no
modifier can be accessed.” The statement is
a) True b) flase
12. File.Length() method returns-
a) The number b) The number of c) The size of file d) The number of
of character lines in file in machine words in file
in file

You might also like