Posts

Showing posts with the label MCQ

MCQ of Java for Java Proficiency test [Solved PDF] - 3

All java classes are derived from A) java.lang.Class B) java.util.Name C) java.lang.Object D) java.awt.Window   The jdb is used to A) Create a jar archive B) Debug a java program C) Create C header file D) Generate java documentation   What would happen if "String[]args" is not included as argument in the main method. A) No error B) Compilation error C) Program won't run D) Program exit   For execution of DELETE SQL query in JDBC, ............. method must be used. A) executeQuery() B) executeDeleteQuery() C) executeUpdate() D) executeDelete()   Which method will a web browser call on a new applet? A) main method B) destroy method C) execute method D) init method   Which of the following is not mandatory in variable declaration? A) a semicolon B) an identifier C) an assignment D) a data type   When a program class implements an interface, it must provide behavior for A) two methods defined in that interface B) any methods in a class C) only certain methods ...

MCQ of Java - 2 [Solved PDF]

The JDBC-ODBC bridge allows ……….. to be used as ……….. A) JDBC drivers, ODBC drivers B) Drivers, Application C) ODBC drivers, JDBC drivers D) Application, drivers   Which of the following is true about Java. A) Java does not support overloading. B) Java has replaced the destructor function of C++ C) There are no header files in Java. D) All of the above.   ……………. are not machine instructions and therefore, Java interpreter generates machine code that can be directly executed by the machine that is running the Java program. A) Compiled Instructions B) Compiled code C) byte code D) Java mid code   The command javac A) Converts a java program into binary code B) Converts a java program into bytecode C) Converts a java program into machine language D) None of the above.   Which of the following is not the java primitive type A) Byte B) Float C) Character D) Long double   Command to execute compiled java program is A) java B) javac C) run D) javaw   Java Servlet ...

MCQ of Basics of Java [Solved PDF] - 1

Java programs are A) Faster than others B) Platform independent C) Not reusable D) Not scalable   Java has its origin in A) C programming language B) PERRL C) COBOL D) Oak programming language   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.   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   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   Filters were officially introduced in the Servlet ……………… specification. A) 2.1 B) 2.3 C) 2.2 D) 2.4 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   OOP features are i) Increasing productivity                   ...