Sail E0 Webinar

MCQs

Total Questions : 40 | Page 1 of 4 pages
Question 1. How many JDBC driver types does Sun define?
  1.    One
  2.    Two
  3.    Three
  4.    Four
 Discuss Question
Answer: Option D. -> Four
Question 2. 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
 Discuss Question
Answer: Option C. -> In the MySQL database mysql
Question 3. 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
 Discuss Question
Answer: Option A. -> Java virtual machine
Question 4. Who invented Java?
  1.    Netscape
  2.    Microsoft
  3.    Sun
  4.    None of the above is correct
 Discuss Question
Answer: Option C. -> Sun
Question 5. 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
 Discuss Question
Answer: Option C. -> Both Type 3 and Type 4
Question 6. ________ is an open source DBMS product that runs on UNIX, Linux and Windows.
  1.    MySQL
  2.    JSP/SQL
  3.    JDBC/SQL
  4.    Sun ACCESS
 Discuss Question
Answer: Option A. -> MySQL
Question 7. 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
 Discuss Question
Answer: Option C. -> AUTO_INCREMENT
Question 8. 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
 Discuss Question
Answer: Option B. -> A Java applet
Question 9. 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.
 Discuss Question
Answer: Option C. -> It may have many constructors as necessary.
Question 10. 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.
 Discuss Question
Answer: Option B. -> Java servlet.

Latest Videos

Latest Test Papers