Servlets and JSP - DBMS

1.

A JSP is transformed into a(n):

   A.) Java servlet
   B.) Java applet
   C.) Either 1 or 2 above
   D.) Neither 1 nor 2 above

Answer: Option 'B'

Java applet

2.

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

   A.) AUTO_INCREMENT
   B.) UNIQUE
   C.) SEQUENCE
   D.) None of the mentioned

Answer: Option 'A'

AUTO_INCREMENT

3.

What is bytecode?

   A.) Java code
   B.) Machine-specific code
   C.) Machine-independent code
   D.) None of the above is correct

Answer: Option 'C'

Machine-independent code

4.

Where is metadata stored in MySQL?

   A.) In the MySQL database metadata
   B.) In the MySQL database metasql
   C.) In the MySQL database mysql
   D.) None of the mentioned

Answer: Option 'C'

In the MySQL database mysql

5.

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

   A.) Type 1
   B.) Type 2
   C.) Type 3
   D.) Type 4

Answer: Option 'A'

Type 1

Servlets and JSP Download Pdf