
jdbc and servlet
Authored by Nirmala Sherine
Professional Development
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following code will initialize ServletConfig object in a servlet?
ServletConfig config = request.getServletConfig();
ServletConfig config = getServletConfig();
ServletConfig config = response.getServletConfig();
ServletConfig config = session.getServletConfig();
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The code inside scriplet will be placed in _____ method of jsp life cycle.
jsp_init()
jsp_service()
_jspService()
httpService()
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following is not an implicit object in jsp?
exception
date
out
context
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following describes the correct sequence of the steps involved in making a connection with a database.
1. Loading the driver
2. Process the results.
3. Making the connection with the database.
4. Executing the SQL statements.
1 ,3,4,2
1,2,3,4
1,4,3,2
1,2,4,3
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method is used to perform DML statements in JDBC?
execute()
executeQuery()
executeUpdate()
executeResult()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In order to transfer data between a database and an application written in the Java programming language, the JDBC API provides which of these methods?
Methods on the ResultSet class for retrieving SQL SELECT results as Java types.
Methods on the PreparedStatement class for sending Java types as SQL statement parameters.
Methods on the CallableStatement class for retrieving SQL OUT parameters as Java types.
All mentioned above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?