Sail E0 Webinar

MCQs

Total Questions : 25 | Page 2 of 3 pages
Question 11. Which of the following encapsulates an SQL statement which is passed to the database to be parsed, compiled, planned and executed?
  1.    DriverManager
  2.    JDBC driver
  3.    Connection
  4.    Statement
 Discuss Question
Answer: Option D. -> Statement




Question 12. Which of the following is used to call a stored procedure?
  1.    Statement
  2.    PreparedStatement
  3.    CallableStatment
  4.    CalledStatement
 Discuss Question
Answer: Option C. -> CallableStatment




Question 13. Who invented Java?
  1.    Netscape
  2.    Microsoft
  3.    Sun
  4.    None
 Discuss Question
Answer: Option C. -> Sun




Question 14. What is, in terms of JDBC, a DataSource?
  1.    A DataSource is the basic service for managing a set of JDBC drivers
  2.    A DataSource is the Java representation of a physical data source
  3.    A DataSource is a registry point for JNDI-services
  4.    A DataSource is a factory of connections to a physical data source
 Discuss Question
Answer: Option D. -> A DataSource is a factory of connections to a physical data source




Question 15. How many copies of a JSP page can be in memory at a time?
  1.    One
  2.    Two
  3.    Three
  4.    Unlimited
 Discuss Question
Answer: Option C. -> Three




Question 16. Which driver is efficient and always preferable for using JDBC applications?
  1.    Type "“ 4
  2.    Type "“ 1
  3.    Type "“ 3
  4.    Type "“ 2
 Discuss Question
Answer: Option C. -> Type "“ 3




Question 17. What is the Life Cycle of Session bean ? Stateless session bean is instantiated by
  1.    newInstance()
  2.    create()
  3.    Both of these
  4.    None
 Discuss Question
Answer: Option A. -> newInstance()




Question 18. 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 19. Which packages contain the JDBC classes?
  1.    java.jdbc and javax.jdbc
  2.    java.jdbc and java.jdbc.sql
  3.    java.sql and javax.sql
  4.    java.rdb and javax.rdb
 Discuss Question
Answer: Option C. -> java.sql and javax.sql




Question 20. Which statements about JDBC are true?
  1.    JDBC is an API to connect to relational-, object- and XML data sources
  2.    JDBC stands for Java DataBase Connectivity
  3.    JDBC is an API to access relational databases
  4.    JDBC is an API to bridge the object-relational mismatch between OO programs and relational databases
 Discuss Question
Answer: Option B. -> JDBC stands for Java DataBase Connectivity




Latest Videos

Latest Test Papers