Google News
logo
Java - Quiz(MCQ)
1 .
Who is inventor of Java ?
A)
James Gosling
B)
Mark Jukervich
C)
Dennis Ritchie
D)
Steve Jobs

Correct Answer : Option (A) :  

James Gosling

2 .
Java initial release date ?
A)
1961
B)
1979
C)
1982
D)
1991

Correct Answer : Option (D) :   1991

3 .
Which tool is required on each machine to run a Java program?
A)
JDK
B)
JRE
C)
SDK
D)
CVS

Correct Answer : Option (B) :  

JRE

4 .
Choose the appropriate data type for this value: "volatile"    
A)
Int
B)
Boolean
C)
String 
D)
Double

Correct Answer : Option (C) :  

String 

5 .
Which one needs a web page to run
A)
A Java Class
B)
A Java Application
C)
A Java Stand-Alone Application
D)
A Java Applet 

Correct Answer : Option (D) :  

A Java Applet 

6 .
What is a loop ?
A)
A segment of code to be run infinite times
B)
A segment of code to be run a specified amount of times
C)
A segment of code to be run once
D)
A new type of Applet.

Correct Answer : Option (B) :  

A segment of code to be run a specified amount of times 

7 .
Which of the following are Java keywords?
A)
throw
B)
void
C)
private
D)
All of the above.

Correct Answer : Option (D) :  

All of the above.

8 .
Which of the following is not a Java keyword?
A)
Main 
B)
Integer
C)
Try 
D)
String  

Correct Answer : Option (B) :  

Integer 

9 .
Which of the following are primitive types ?
A)
String
B)
Float
C)
integer
D)
byte

Correct Answer : Option (D) :  

byte

10 .
What is the keyword used in java to create an object?
A)
New 
B)
New()
C)
Sync
D)
This

Correct Answer : Option (A) :  

New