APJ2.3

advertisement
APJ2
1. The __________ method of the connection class is used to create the CallableStatement
objects. [0.5 Mark(s)]
1. Preparecall()
2. Set()
3. setFloat()
A. 1
B. 2
C. 3
2. In ________, each individual SQL statement is treated as a transaction. [0.5 Mark(s)]
A. Commit mode
B. Auto mode
C. Auto-commit mode
3. To allow two or more statements to be grouped into a transaction, disable _________
mode. [0.5 Mark(s)]
A. Auto-commit
B. Sync
C. commit
4. Events that trigger notifications in RowSet objects are: [0.5 Mark(s)]
1. Movement of a cursor
2. Insetion, updation or deletion of a row
3. Changing the entire RowSet contents
A. 1, 2
B. 2, 3
C. 1, 2, 3
5. ___________ is an example of connected RowSet. [0.5 Mark(s)]
A. ODBC RowSet
B. JDBC RowSet
C. RDBM RowSet
6. The _________ method of the JDBCRowSet Interface reverses all the changes made in
the on-going transaction and releases any database locks held by the connection object
contained in the RowSet object. [0.5 Mark(s)]
A. rollback() throws SQLException
B. commit() throws SQL Exception
C. execute() throws SQL Exception
7. The ________ method of the JDBC RowSet interface makes all changes that have been
made since the last commit/rollback condition permanent. [0.5 Mark(s)]
A. execute() throws SQLException
B. commit() throws SQLException
C. rollback() throws SQLException
8. The ________ constructor creates a JDBC RowSet object which serves a thin wrapper
around the result set object. [0.5 Mark(s)]
A. JDBC RowSet Impl(java.sql.ResultSet res)
B. JDBC RowSet Impl(String url, String user, String password)
C. JDBC RowSet Impl(java.sql)
9. The _______ method moves the cursor to the specified row in the RowSet. [0.5 Mark(s)]
A. absolute(int row)
B. afterlast()
C. beforeFirst()
10. A disconnected RowSet [0.5 Mark(s)]
A. Stores its data in memory and operates on that data rather than directly operating on
the data in the database.
B. Stores its data in the CPU and operates on that data rather than directly operating on the
data in the database.
C. Stores its data in a class.
11. Which of the following drivers are 100% Java enabled and do not use Call Level
Interface libraries? [1 Mark(s)]
A. JDBC-ODBC
B. Native API/partly Java
C. Net-protocol/all-Java
D. Native-protocol/all-Java
12. Which of the following interfaces contains methods that are used for execution of SQL
stored procedures?[1 Mark(s)]
A. CallableStatement
B. Connection
C. Driver
D. Statement
13. Which of the following interfaces of java.sql package provides methods for retrieving
data returned by a SQL statement? [1 Mark(s)]
A. CallableStatement
B. Connection
C. ResultSet
D. Statement
14. Open DataBase Connectivity is an Application Programming Interface provided by
Microsoft for accessing the database. [1 Mark(s)]
A. True
B. False
15. The _____________________________interface allows you to create precompiled SQL
statements and gives you the option of specifying the parameters for the statement at a
later stage. [1 Mark(s)]
A. PreparedStatement
B. Statement
C. CallableStatement
D. TransactionStatement
16. Which of the following events trigger notifications in RowSet objects? [1 Mark(s)]
1. Movement of a cursor
2. Insertion, updating or deletion of a row
3. Changing the entire RowSet contents
A. 1, 2
B. 2, 3
C. 1, 3
D. 1, 2, 3
17. _______________________is the parent interface implemented by all connected
RowSet objects. [1 Mark(s)]
A. JdbcRowSet
B. CachedRowSet
C. RowSet
18. Which of the following contains path of the class and permission details required to
access a resource? [1 Mark(s)]
A. Policy file
B. AllPermission class
C. FilePermission class
D. PathPermission class
19. Which of the following classes is used to grant access to network resources? [1 Mark(s)]
A. AllPermission
B. FilePermission
C. PathPermission
D. SocketPermission
20. Encryption converts original data into an encrypted form by applying
_________________transformations.[1 Mark(s)]
A. Arithmetical
B. Mathematical
C. Secure
D. Cipher
21. A cipher disables encryption and decryption operations. [1 Mark(s)]
A. True
B. False
22. Which of the following helps to covert a document or a message from its
comprehensible form into an incomprehensible format, thus making it unreadable? [1
Mark(s)]
A. Digital signatures
B. KeyPairGenerator class
C. Cryptography
D. Symmetric key
23. JDBC is an acronym of "Java Database Connectivity." [1 Mark(s)]
A. True
B. False
24. Which of the following are the advantages of JDBC? [1 Mark(s)]
1. Continued usage of existing data
2. Vendor dependent
3. Platform independent
4. Ease of use
A. 1, 2, 3
B. 2, 3, 4
C. 1, 3, 4
D. 1, 2, 3, 4
25. Native Protocol-All Java is _______________JDBC driver. [1 Mark(s)]
A. Type I
B. Type II
C. Type III
D. Type IV
Download