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 : -

View Answer

Application is instance of which class?

Options

A : javax.servlet.Application

B : javax.servlet.HttpContext

C : javax.servlet.Context

D : javax.servlet.ServletContext

View Answer

Which of the following is method of JDBC batch process?

Options

A : setBatch()

B : deleteBatch()

C : removeBatch()

D : addBatch()

View Answer

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

View Answer

Which of the following is used to call stored procedure?

Options

A : Statement

B : PreparedStatement

C : CallableStatment

D : CalledStatement

View Answer

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)

View Answer

Which of the following is used to rollback a JDBC transaction?

Options

A : rollback()

B : rollforward()

C : deleteTransaction()

D : RemoveTransaction()

View Answer

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

View Answer

Which page directive should be used in JSP to generate a PDF page?

Options

A : contentType

B : generatePdf

C : typePDF

D : contentPDF

View Answer

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

View Answer

Annotations more Online Exam Quiz

AutoCloseable, Closeable and Flushable Interfaces

Client and Server

Debugging in Eclipse

Design Patterns

Java Beans

JSP

JSP Elements

Reflection API

Servlet

Session Management