logo

CuriousTab

CuriousTab

JDBC, Java Server Pages, and MySQL problems


  • 1. How does Tomcat execute a JSP?

  • Options
  • A. As a CGI script
  • B. As an independent process
  • C. By one of Tomcat's threads
  • D. None of the above is correct.
  • Discuss
  • 2. Who invented Java?

  • Options
  • A. Netscape
  • B. Microsoft
  • C. Sun
  • D. None of the above is correct.
  • Discuss
  • 3. Which JDBC driver Type(s) can be used in either applet or servlet code?

  • Options
  • A. Both Type 1 and Type 2
  • B. Both Type 1 and Type 3
  • C. Both Type 3 and Type 4
  • D. Type 4 only
  • Discuss
  • 4. JDBC stands for:

  • Options
  • A. Java Database Connectivity
  • B. Java Database Components
  • C. Java Database Control
  • D. None of the above is correct.
  • Discuss
  • 5. What is sent to the user via HTTP, invoked using the HTTP protocol on the user's computer, and run on the user's computer as an application?

  • Options
  • A. A Java application
  • B. A Java applet
  • C. A Java servlet
  • D. None of the above is correct.
  • Discuss
  • 6. How many copies of a JSP page can be in memory at a time?

  • Options
  • A. One
  • B. Two
  • C. Three
  • D. Unlimited
  • Discuss
  • 7. What is bytecode?

  • Options
  • A. Machine-specific code
  • B. Java code
  • C. Machine-independent code
  • D. None of the above is correct.
  • Discuss
  • 8. What is invoked via HTTP on the Web server computer when it responds to requests from a user's Web browser?

  • Options
  • A. A Java application
  • B. A Java applet
  • C. A Java servlet
  • D. None of the above is correct.
  • Discuss
  • 9. What programming language(s) or scripting language(s) does Java Server Pages (JSP) support?

  • Options
  • A. VBScript only
  • B. Jscript only
  • C. Java only
  • D. All of the above are supported
  • Discuss
  • 10. Which JDBC driver Type(s) can you use in a three-tier architecture and if the Web server and the DBMS are running on the same machine?

  • Options
  • A. Type 1 only
  • B. Type 2 only
  • C. Both Type 3 and Type 4
  • D. All of Type 1, Type 2, Type 3 and Type 4
  • Discuss

First 2 3