Home / CSE / Database System 2 - CS :: JDBC, Java Server Pages, and MySQL

CSE :: Database System 2 - CS

  1. How many JDBC driver types does Sun define?

  2. A.

     One

    B.

     Two

    C.

     Three

    D.

     Four

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Where is metadata stored in MySQL?

  4. A.

     In the MySQL database metadata

    B.

     In the MySQL database metasql

    C.

     In the MySQL database mysql

    D.

     None of the above is correct

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Who invented Java?

  6. A.

     Netscape

    B.

     Microsoft

    C.

     Sun

    D.

     None of the above is correct

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.

     Java virtual machine

    B.

     Java compiler

    C.

     Java bytecode

    D.

     A Web browser

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  10. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  12. A.

     MySQL

    B.

     JSP/SQL

    C.

     JDBC/SQL

    D.

     Sun ACCESS

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. 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?

  14. A.

     A Java application

    B.

     A Java applet

    C.

     A Java servlet

    D.

     None of the above is correct

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  16. A.

     UNIQUE

    B.

     SEQUENCE

    C.

     AUTO_INCREMENT

    D.

     None of the above -- Surrogate keys are not implemented in MySQL

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. What is not true of a Java bean?

  18. A.

     There are no public instance variables.

    B.

     All persistent values are accessed using getxxx and setxxx methods.

    C.

     It may have many constructors as necessary.

    D.

     All of the above are true of a Java bean.

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. A JSP is transformed into a(n):

  20. A.

     Java applet.

    B.

     Java servlet.

    C.

     Either 1 or 2 above.

    D.

     Neither 1 nor 2 above.

    View Answer

    Workspace

    Discuss Discuss in Forum