MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Java: Which provides a new way for your programs to interface with code libraries written in other languages? |
| A. | JNI |
| B. | JDBC |
| C. | RMI |
| D. | GUI |
| Answer» B. JDBC | |
| 2. |
Which is used for Java Virtual Machine "assembly language", its opcodes and operands, as well as items in the Java Virtual Machine's run-time data areas? |
| A. | ASCII |
| B. | Italic |
| C. | Latin |
| D. | Greek |
| Answer» C. Latin | |
| 3. |
Which is true about a method-local inner class? (Java) |
| A. | It must be marked final. |
| B. | It can be marked abstract. |
| C. | It can be marked public. |
| D. | It can be marked static. |
| Answer» C. It can be marked public. | |
| 4. |
Which constructs an anonymous inner class instance? (Java) |
| A. | Runnable r = new Runnable() { }; |
| B. | Runnable r = new Runnable(public void run() { }); |
| C. | Runnable r = new Runnable { public void run(){}}; |
| D. | System.out.println(new Runnable() {public void run() { }}) |
| Answer» E. | |
| 5. |
Which of the following allows the programmer to destroy an object x? (Java) |
| A. | x.delete() |
| B. | x.finalize() |
| C. | Runtime.getRuntime().gc() |
| D. | Only the garbage collection system can destroy an object. |
| Answer» E. | |
| 6. |
Java: A JDBC technology-based driver ("JDBC driver") makes it possible to do |
| A. | Establish a connection with a data source |
| B. | Send queries and update statements to the data source |
| C. | Process the results |
| D. | All mentioned above |
| Answer» E. | |
| 7. |
Which of the following statements are correct? (Java) |
| A. | If multiple listeners are added to a component only events for the last listener added will be processed |
| B. | If multiple listeners are added to a component the events will be processed for all but with no guarantee in the order |
| C. | Adding multiple listeners to a comnponent will cause a compile time error |
| D. | You can not remove or add listeners to a component. |
| Answer» C. Adding multiple listeners to a comnponent will cause a compile time error | |
| 8. |
Java: Which is a component in AWT that can contain another components like buttons, textfields, labels etc.? |
| A. | Window |
| B. | Container |
| C. | Panel |
| D. | Frame |
| Answer» C. Panel | |
| 9. |
Java: Which servlet does struts framework use? |
| A. | EntryServlet |
| B. | StrutsServlet |
| C. | ActionServlet |
| D. | BasicServlet |
| Answer» D. BasicServlet | |
| 10. |
Java: In which the JDBC type represents a "single precision" floating point number that supports seven digits of mantissa? |
| A. | REAL |
| B. | DOUBLE |
| C. | FLOAT |
| D. | INTEGER |
| Answer» B. DOUBLE | |
| 11. |
Java: In which model a Java applet or application talks directly to the data source? |
| A. | Two-tier models |
| B. | Three-tier models |
| C. | Both A & B |
| D. | None of the above |
| Answer» B. Three-tier models | |
| 12. |
Which of the following methods are members of the Vector class and allow you to input a new element? (Java) |
| A. | addElement |
| B. | insert |
| C. | append |
| D. | addItem |
| Answer» B. insert | |
| 13. |
What can cause a thread to stop executing? (Java) |
| A. | The program exits via a call to System.exit(0); |
| B. | Another thread is given a higher priority |
| C. | A call to the thread's stop method |
| D. | All of the above |
| Answer» E. | |