الجمعة، 21 ديسمبر 2012

Solved MCQ of Java Set-1

الجمعة، 21 ديسمبر 2012 - by mego almasry 0


1. Java programs are
A) Faster than others
B) Platform independent
C) Not reusable
D) Not scalable

2. Java has its origin in
A) C programming language
B) PERRL
C) COBOL
D) Oak programming language


3. Which one of the following is true for Java
A) Java is object oriented and interpreted
B) Java is efficient and faster than C
C) Java is the choice of everyone.
D) Java is not robust.


4. The command javac is used to
A) debug a java program
B) compile a java program
C) interpret a java program
D) execute a java program

5. Java servlets are an efficient and powerful solution for creating ………….. for the web.
A) Dynamic content
B) Static content
C) Hardware
D) Both a and b

6. Filters were officially introduced in the Servlet ……………… specification.
A) 2.1
B) 2.3
C) 2.2
D) 2.4

7. Which is the root class of all AWT events
A) java.awt.ActionEvent              
B) java.awt.AWTEvent
C) java.awt.event.AWTEvent
D) java.awt.event.Event

8. OOP features are
i) Increasing productivity                              ii) Reusability
iii) Decreasing maintenance cost               iv) High vulnerability
A) 1,2 & 4
B) 1,2 & 3
C) 1, 2 & 4
D) none of the above

9. break statement is used to
i) get out of method                                       ii) end aprogram
iii) get out of a loop                                         iv) get out of the system
A) 1 & 2
B) 1,2 & 3
C) 1 & 3
D) 3

10. Native – protocol pure Java converts ……….. into the ………… used by DBMSs directly.
A) JDBC calls, network protocol
B) ODBC class, network protocol
C) ODBC class, user call
D) JDBC calls, user call

Answers:
1. B) Platform independent
2. D) Oak programming language
3. A) Java is object ...... interpreted
4. B) compile a java program
5. A) Dynamic content
6. B) 2.3
7. B) java.awt.AWTEvent
8. B) 1,2 & 3
9. D) 3
10. A) JDBC calls, ......protocol

About the Author

Write admin description here..

0 التعليقات:

Text Widget

© 2013 12354584. WP Theme-junkie converted by Bloggertheme9