
Q3-PROGRAMMING-SUMMATIVE-TEST-SY2023-2024
Authored by Rhoychie Roy
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is JDBC?
Joint Driver for Basic Connection
JDBC is a java-based protocol.
JDBC is a specification to tell how to connect to a database.
JDBC is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following encapsulates an SQL statement which is passed to the database to be parsed, compiled, planned and executed?
JDBC driver
Statement
DriverManager
Connection
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid type of statement in JDBC?
QueryStatement
PreparedStatement
Statement
CallableStatement
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is true about getConnection() method?
It is a non static method from DriverManager class
It is a static method from DriverManager interface
It is a static method from DriverManager class
It is a non static method from DriverManager interface
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you execute DML statements (i.e. insert, delete, update) in the database?
By making use of the execute(…) statement of the DataModificationStatement object
By invoking the execute(…) or executeUpdate(…) method of a normal Statement object or a sub-interface object thereof
By invoking the executeInsert(…), executeDelete(…) or executeUpdate(…) methods of the DataModificationStatement object
By making use of the InsertStatement, DeleteStatement or UpdateStatement classes
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the return type of executeUpdate() method?
short
byte
int
long
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is true about getConnection() method?
It is a non static method from DriverManager interface
It is a non static method from DriverManager class
It is a static method from DriverManager interface
It is a static method from DriverManager class
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?