And Mysql(Engineering > Computer Science And Engineering > Database System > Jdbc > Java Server Pages ) Questions and Answers
Question 1. To run a compiled Java program, the machine must have what loaded and running?
A Web browser
Java compiler
Java virtual machine
Java bytecode
Explanation:-
Answer: Option C. -> Java virtual machine
Question 2. How many JDBC driver types does Sun define?
Two
Three
Four
One
Explanation:-
Answer: Option C. -> Four
Question 3. Where is metadata stored in MySQL?
In the MySQL database metadata
In the MySQL database metasql
None of these
In the MySQL database mysql
Explanation:-
Answer: Option D. -> In the MySQL database mysql
Question 4. Who invented Java?
Sun
None of these
Microsoft
Netscape
Explanation:-
Answer: Option A. -> Sun
Question 5. Which JDBC driver Type(s) can be used in either applet or servlet code?
Both Type 3 and Type 4
Both Type 1 and Type 2
Both Type 1 and Type 3
Type 4 only
Explanation:-
Answer: Option A. -> Both Type 3 and Type 4
Question 6. ________ is an open source DBMS product that runs on UNIX, Linux and Windows.
Sun ACCESS
JDBC/SQL
JSP/SQL
MySQL
Explanation:-
Answer: Option D. -> MySQL
Question 7. What is not true of a Java bean?
There are no public instance variables.
All of these
It may have many constructors as necessary.
All persistent values are accessed using getxxx and setxxx methods.
Explanation:-
Answer: Option C. -> It may have many constructors as necessary.
Question 8. A JSP is transformed into a(n):
Java applet.
Either 1 or 2 above.
Java servlet.
Neither 1 nor 2 above.
Explanation:-
Answer: Option C. -> Java servlet.
Question 9. What MySQL property is used to create a surrogate key in MySQL?
UNIQUE
None of these
SEQUENCE
AUTO_INCREMENT
Explanation:-
Answer: Option D. -> AUTO_INCREMENT
Question 10. 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?