JDBC Online Exam Quiz
JDBC GK Quiz. Question and Answers related to JDBC. MCQ (Multiple Choice Questions with answers about JDBC
_jspService() method of HttpJspPage class should not be overridden.
Options
A : TRUE
B : FALSE
C : -
D : -
Application is instance of which class?
Options
A : javax.servlet.Application
B : javax.servlet.HttpContext
C : javax.servlet.Context
D : javax.servlet.ServletContext
Which of the following is method of JDBC batch process?
Options
A : setBatch()
B : deleteBatch()
C : removeBatch()
D : addBatch()
Which of the following is not a JDBC connection isolation levels?
Options
A : TRANSACTION_NONE
B : TRANSACTION_READ_COMMITTED
C : TRANSACTION_REPEATABLE_READ
D : TRANSACTION_NONREPEATABLE_READ
Which of the following is used to call stored procedure?
Options
A : Statement
B : PreparedStatement
C : CallableStatment
D : CalledStatement
Which of the following is used to limit the number of rows returned?
Options
A : setMaxRows(int i)
B : setMinRows(int i)
C : getMaxrows(int i)
D : getMinRows(int i)
Which of the following is used to rollback a JDBC transaction?
Options
A : rollback()
B : rollforward()
C : deleteTransaction()
D : RemoveTransaction()
Which option is true about session scope?
Options
A : Objects are accessible only from the page in which they are created
B : Objects are accessible only from the pages which are in same session
C : Objects are accessible only from the pages which are processing the same request
D : Objects are accessible only from the pages which reside in same application
Which page directive should be used in JSP to generate a PDF page?
Options
A : contentType
B : generatePdf
C : typePDF
D : contentPDF
Which tag should be used to pass information from JSP to included JSP?
Options
A : Using <%jsp:page> tag
B : Using <%jsp:param> tag
C : Using <%jsp:import> tag
D : Using <%jsp:useBean> tag