wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OOPS MOCK QUIZ

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Who invented JAVA programming?

a)

Guido van Rossum

b)

James Gosling

c)

Dennis Ritchie

d)

Bjarne Stroustrup

2.

Which of the following is not an object-oriented programming language?

a)

Objective C

b)

C++

c)

JAVA

d)

Pascal

3.

Which method can used to find the length of string?

a)

stringlength()

b)

length()

c)

getLength()

d)

getSize()

4.

Which feature JAVA does not support?

a)

Polymorphism

b)

Inheritance

c)

Pointer

d)

Portable

5.

Java is short of Javascript.

a)

TRUE

b)

FALSE

6.

Default value of static integer variable of a class in java is

(a)  

7.

What is the default value of Boolean variable?

a)

TRUE

b)

FALSE

c)

NULL

d)

NOT DEFINED

8.

Which component is used to compile, debug and execute the java programs?

a)

JRE

b)

JVM

c)

JIT

d)

JDK

9.

Which method must be implemented by all threads?

a)

wait()

b)

run()

c)

start()

d)

stop()

10.

class Main {

   public static void main(String args[]) {

      try {

         throw 10;

      }

      catch(int e) {

         System.out.println("Got the  Exception " + e);

      }

  }

}

a)

Got the Exception 10

b)

Got the Exception 0

c)

Compiler Error

d)

Runtime Error