Java How to Program, 11/e Multiple Choice Test Bank 4 of 6
Section 24.4.6 UPDATE Statement
24.4.6 Q1: In an UPDATE statement, the SET keyword is followed by _________.
a. a comma-separated list of column value-name pairs in the format value = columnName
b. a comma-separated list of column name-value pairs in the format columnName = value
c. a semicolon-separated list of column value-name pairs in the format value = columnName
d. a semicolon-separated list of column name-value pairs in the format columnName = value
Section 24.4.7 DELETE Statement
24.4.7 Q1: Which statement is false?
a. A DELETE statement removes rows from a table.
b. A DELETE statement must specify the table from which to delete.
c. A DELETE statement starts with the keyword DELETE.
d. A WHERE clause must be present in a DELETE statement.
Section 24.5 Setting up a Java DB Database
(No Questions.)
Section 24.5.1 Creating the Chapter’s Databases on Windows
No Questions.
Section 24.5.2 Creating the Chapter’s Databases on macOS
No Questions.
Section 24.5.3 Creating the Chapter’s Databases on Linux
No Questions.
Section 24.6 Connecting to and Querying a Database
(No Questions.)
24.6 Q1: Classes and interfaces for the JDBC API can be found in which package?
a. java.jdbc.
b. javax.jdbc.
c. java.sql.
d. java.sql.jdbc.
24.6 Q2: What exception is thrown if DriverManager method getConnection cannot connect to the
database?
a. DatabaseConnectionException.
b. DatabaseNotFoundException.
c. SQLException.
d. IllegalAccessException.
Section 24.7 Querying the books Database
24.7 Q1: Which constants are used to indicate that a ResultSet is scrollable, insensitive to changes and
read only?