gs gs128 Java Beans JDBC - JDBC - Quiz No.1
gs gs128 Java Quiz
This quiz belongs to book/course code gs gs128 Java of gs organization. We have 136 quizzes available related to the book/course Java. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Java Beans JDBC. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of the following contains both date and time?
java.io.date
java.sql.date
java.util.date
java.util.dateTime
Question 2: Which of the following is advantage of using JDBC connection pool?
Slow performance
Using more memory
Using less memory
Better performance
Question 3: Which of the following is advantage of using PreparedStatement in Java?
Slow performance
Encourages SQL injection
Prevents SQL injection
More memory usage
Question 4: Which one of the following contains date information?
java.sql.TimeStamp
java.sql.Time
java.io.Time
java.io.TimeStamp
Question 5: What does setAutoCommit(false) do?
commits transaction after each query
explicitly commits transaction
does not commit transaction automatically after each query
never commits transaction
Question 6: Which of the following is used to call stored procedure?
Statement
PreparedStatement
CallableStatment
CalledStatement
Question 7: Which of the following is used to limit the number of rows returned?
setMaxRows(int i)
setMinRows(int i)
getMaxrows(int i)
getMinRows(int i)
Question 8: Which of the following is method of JDBC batch process?
setBatch()
deleteBatch()
removeBatch()
addBatch()
Question 9: Which of the following is used to rollback a JDBC transaction?
rollback()
rollforward()
deleteTransaction()
RemoveTransaction()
Question 10: Which of the following is not a JDBC connection isolation levels?
TRANSACTION_NONE
TRANSACTION_READ_COMMITTED
TRANSACTION_REPEATABLE_READ
TRANSACTION_NONREPEATABLE_READ