Java JDBC Test 2 | JDBC online quiz, Online practice Test - Java Test
Finish Quiz
0 of 20 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
Information
Java JDBC Quiz 2 | JDBC online test, Online practice Test. Free Java JDBC Quiz. The purpose of this Free Java online test is to help you evaluate your JDBC knowledge yourself via online mode.
This paper has 20 questions.
Time allowed is 25 minutes.
The Java JDBC Mock Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 20 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- Answered
- Review
-
Question 1 of 20
1. Question
When the message “No Suitable Driver” occurs?
Correct
“No suitable driver” is an error which occurs during a call to the DriverManager.getConnection method and it is also a cause that can occur while failing to load the appropriate JDBC drivers before calling the getConnection method, or it can be specifying an invalid JDBC URL (which isn’t recognized by JDBC driver). While using JDBC-ODBC Bridge also this kind of error can occur. This is the cause when one or more shared libraries needed by the Bridge cannot be loaded.
Incorrect
“No suitable driver” is an error which occurs during a call to the DriverManager.getConnection method and it is also a cause that can occur while failing to load the appropriate JDBC drivers before calling the getConnection method, or it can be specifying an invalid JDBC URL (which isn’t recognized by JDBC driver). While using JDBC-ODBC Bridge also this kind of error can occur. This is the cause when one or more shared libraries needed by the Bridge cannot be loaded.
-
Question 2 of 20
2. Question
Which driver is called as thin-driver in JDBC?
Correct
The JDBC type 4 driver is known as the Direct to Database Pure Java Driver. It is a database driver implementation that converts JDBC calls directly into a vendor-specific database protocol. It is a platform independent driver and it gets install inside the Java Virtual Machine of the client. It provides higher performance then its counterparts and it also doesn’t have the overhead of conversion of calls into ODBC or database API calls.
It is vendor specific and it requires separate drivers which is provided to the vendor to connect to different types of databases. For example Oracle thin-driver.
Incorrect
The JDBC type 4 driver is known as the Direct to Database Pure Java Driver. It is a database driver implementation that converts JDBC calls directly into a vendor-specific database protocol. It is a platform independent driver and it gets install inside the Java Virtual Machine of the client. It provides higher performance then its counterparts and it also doesn’t have the overhead of conversion of calls into ODBC or database API calls.
It is vendor specific and it requires separate drivers which is provided to the vendor to connect to different types of databases. For example Oracle thin-driver.
-
Question 3 of 20
3. Question
How many transaction isolation levels are defined in java.sql.Connection interface?
Correct
Incorrect
-
Question 4 of 20
4. Question
Which method is used to perform DML statements in JDBC?
Correct
Data manipulation language (DML) provides statements like selecting, inserting, deleting and updating data in a database. Component of DML includes performing read-only queries of data. SQL is also known as DML or data manipulation language as it is used retrieve and manipulate data in a relational database.
executeupdate() is used to perform as Data manipulation language, it is used to modify stored data but not the schema or database objects. Manipulation takes place in form of persistent database objects, e.g., tables or stored procedures, via the SQL schema statements,rather than the data stored within them.
Incorrect
Data manipulation language (DML) provides statements like selecting, inserting, deleting and updating data in a database. Component of DML includes performing read-only queries of data. SQL is also known as DML or data manipulation language as it is used retrieve and manipulate data in a relational database.
executeupdate() is used to perform as Data manipulation language, it is used to modify stored data but not the schema or database objects. Manipulation takes place in form of persistent database objects, e.g., tables or stored procedures, via the SQL schema statements,rather than the data stored within them.
-
Question 5 of 20
5. Question
What is the disadvantage of Type-4 Native-Protocol Driver?
Correct
The JDBC type 4 driver is known as the Direct to Database Pure Java Driver. It is a database driver implementation that converts JDBC calls directly into a vendor-specific database protocol. It is a platform independent driver and it gets install inside the Java Virtual Machine of the client. It provides higher performance then its counterparts and it also doesn’t have the overhead of conversion of calls into ODBC or database API calls.
It is vendor specific and it requires separate drivers which is provided to the vendor to connect to different types of databases. For example Oracle thin-driver.
The main disadvantage to this is that drivers are database dependent, as different database vendors use widely different (and usually proprietary) network protocols.
Incorrect
The JDBC type 4 driver is known as the Direct to Database Pure Java Driver. It is a database driver implementation that converts JDBC calls directly into a vendor-specific database protocol. It is a platform independent driver and it gets install inside the Java Virtual Machine of the client. It provides higher performance then its counterparts and it also doesn’t have the overhead of conversion of calls into ODBC or database API calls.
It is vendor specific and it requires separate drivers which is provided to the vendor to connect to different types of databases. For example Oracle thin-driver.
The main disadvantage to this is that drivers are database dependent, as different database vendors use widely different (and usually proprietary) network protocols.
-
Question 6 of 20
6. Question
Which of the following allows non repeatable read in JDBC Connection?
Correct
Incorrect
-
Question 7 of 20
7. Question
Which of the following statements is true regarding the failing of the class.forName in jdk 1.1.x.
Correct
Incorrect
-
Question 8 of 20
8. Question
How many JDBC driver types does Sun define?
Correct
Incorrect
-
Question 9 of 20
9. Question
The JDBC-ODBC Bridge supports multiple concurrent open statements per connection?
Correct
Incorrect
-
Question 10 of 20
10. Question
Whatâ??s the difference between TYPE_SCROLL_INSENSITIVE , and TYPE_SCROLL_SENSITIVE?
Correct
Incorrect
-
Question 11 of 20
11. Question
Where is metadata stored in MySQL?
Correct
Incorrect
-
Question 12 of 20
12. Question
Which of the following statements is false as far as different type of statements is concern in JDBC?
Correct
Incorrect
-
Question 13 of 20
13. Question
Which of the following is true regarding not finding the java.sql.DriverManager class.
Correct
Incorrect
-
Question 14 of 20
14. Question
Which JDBC driver Type(s) can be used in either applet or servlet code?
Correct
Incorrect
-
Question 15 of 20
15. Question
Which of the following methods are needed for loading a database driver in JDBC?
Correct
Incorrect
-
Question 16 of 20
16. Question
Which of the following statement is false regarding the use of setAutoCommit() in JDBC
Correct
Incorrect
-
Question 17 of 20
17. Question
By default the JDBC call is in auto-commit mode.
Correct
Incorrect
-
Question 18 of 20
18. Question
Which of the following is false as far as type 4 driver is concern?
Correct
Incorrect
-
Question 19 of 20
19. Question
Which of the following is false regarding the Type 3 JDBC driver
Correct
Incorrect
-
Question 20 of 20
20. Question
What is sent to the user via HTTP, invoked using the HTTP protocol on the user’s computer, and run on the user’s computer as an application?
Correct
Incorrect