Java Web Technologies and JDBC Practice Test

Test your knowledge of Java web development including JSP, servlets, Apache Tomcat, JDBC database connectivity, and MySQL integration.

26 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

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?

  1. A Java application
  2. A Java applet
  3. A Java servlet
  4. None of the above is correct.
Question 2 Multiple Choice (Single Answer)

Which JDBC driver Type(s) is(are) the JDBC-ODBC bridge?

  1. Type 1
  2. Type 2
  3. Type 3
  4. Type 4
Question 3 Multiple Choice (Single Answer)

How many copies of a JSP page can be in memory at a time?

  1. One
  2. Two
  3. Three
  4. Unlimited
Question 4 Multiple Choice (Single Answer)

Which JDBC driver Types are for use over communications networks?

  1. Type 3 only
  2. Type 4 only
  3. Both Type 3 and Type 4
  4. Neither Type 3 nor Type 4
Question 5 Multiple Choice (Single Answer)

How many JDBC driver types does Sun define?

  1. One
  2. Two
  3. Three
  4. Four
Question 6 Multiple Choice (Single Answer)

How does Tomcat execute a JSP?

  1. As a CGI script
  2. As an independent process
  3. By one of Tomcat's threads
  4. None of the above is correct
Question 7 Multiple Choice (Single Answer)

JDBC stands for:

  1. Java Database Connectivity
  2. Java Database Components
  3. Java Database Control
  4. None of the above is correct
Question 8 Multiple Choice (Single Answer)

Where is metadata stored in MySQL?

  1. In the MySQL database metadata
  2. In the MySQL database metasql
  3. In the MySQL database mysql
  4. None of the above is correct
Question 9 Multiple Choice (Single Answer)

Who invented Java?

  1. Netscape
  2. Microsoft
  3. Sun
  4. None of the above is correct
Question 10 Multiple Choice (Single Answer)

________ is an open source DBMS product that runs on UNIX, Linux and Windows.

  1. MySQL
  2. JSP/SQL
  3. JDBC/SQL
  4. Sun ACCESS
Question 11 Multiple Choice (Single Answer)

A JSP is transformed into a(n):

  1. Java applet.
  2. Java servlet.
  3. Either 1 or 2 above.
  4. Neither 1 nor 2 above.
Question 12 Multiple Choice (Single Answer)

What programming language(s) or scripting language(s) does Java Server Pages (JSP) support?

  1. VBScript only
  2. Jscript only
  3. Java only
  4. All of the above are supported
Question 13 Multiple Choice (Single Answer)

What is bytecode?

  1. Machine-specific code
  2. Java code
  3. Machine-independent code
  4. None of the above is correct
Question 14 Multiple Choice (Single Answer)

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?

  1. Type 1 only
  2. Type 2 only
  3. Both Type 3 and Type 4
  4. All of Type 1, Type 2, Type 3 and Type 4
Question 15 Multiple Choice (Single Answer)

What servlet processor was developed by Apache Foundation and Sun?

  1. Apache Tomcat
  2. Apache Web server
  3. Sun servlet processor
  4. None of the above is correct
Question 16 Multiple Choice (Single Answer)

How many copies of a JSP page can be in memory at a time?

  1. One
  2. Two
  3. Three
  4. Unlimited
Question 17 Multiple Choice (Single Answer)

What is invoked via HTTP on the Web server computer when it responds to requests from a user's Web browser?

  1. A Java application
  2. A Java applet
  3. A Java servlet
  4. None of the above is correct
Question 18 Multiple Choice (Single Answer)

What is not true of a Java bean?

  1. There are no public instance variables.
  2. All persistent values are accessed using getxxx and setxxx methods.
  3. It may have many constructors as necessary.
  4. All of the above are true of a Java bean.
Question 19 Multiple Choice (Single Answer)

Which JDBC driver Type(s) is(are) the JDBC-ODBC bridge?

  1. Type 1
  2. Type 2
  3. Type 3
  4. Type 4
Question 20 Multiple Choice (Single Answer)

Which JDBC driver Types are for use over communications networks?

  1. Type 3 only
  2. Type 4 only
  3. Both Type 3 and Type 4
  4. Neither Type 3 nor Type 4
Question 21 Multiple Choice (Single Answer)

How does Tomcat execute a JSP?

  1. As a CGI script
  2. As an independent process
  3. By one of Tomcat's threads
  4. None of the above is correct
Question 22 Multiple Choice (Single Answer)

JDBC stands for:

  1. Java Database Connectivity
  2. Java Database Components
  3. Java Database Control
  4. None of the above is correct
Question 23 Multiple Choice (Single Answer)

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?

  1. A Java application
  2. A Java applet
  3. A Java servlet
  4. None of the above is correct
Question 24 Multiple Choice (Single Answer)

What MySQL property is used to create a surrogate key in MySQL?

  1. UNIQUE
  2. SEQUENCE
  3. AUTO_INCREMENT
  4. None of the above -- Surrogate keys are not implemented in MySQL
Question 25 Multiple Choice (Single Answer)

To run a compiled Java program, the machine must have what loaded and running?

  1. Java virtual machine
  2. Java compiler
  3. Java bytecode
  4. A Web browser
Question 26 Multiple Choice (Single Answer)

Which JDBC driver Type(s) can be used in either applet or servlet code?

  1. Both Type 1 and Type 2
  2. Both Type 1 and Type 3
  3. Both Type 3 and Type 4
  4. Type 4 only