Deck 16: Databases

Full screen (f)
exit full mode
Question
What string lists the protocol that should be used to access a database, the name of the database, and potentially other items?

A) JDBC driver
B) Database URL
C) JDBC locator
D) Database specifier
Use Space or
up arrow
down arrow
to flip the card.
Question
Of the following column names, which one is most likely a primary key column?

A) Price
B) Description
C) ItemNumber
D) Quantity
Question
This type of SQL statement is used to retrieve the rows from a table.

A) GET
B) SELECT
C) READ
D) RETRIEVE
Question
Which of the following shows how a single quote is represented as part of a string in SQL?

A) _'
B) "'"
C) /'
D) ''
Question
This is the standard language for working with database management systems.

A) SQL
B) BASIC
C) ADA
D) COBOL
Question
What SQL operator can be used to perform a search for a substring?

A) STR
B) LIKE
C) WHERE
D) SUB
Question
You use this statement in SQL to insert a new row into a table.

A) UPDATE
B) ADD
C) NEW
D) INSERT
Question
In SQL, this character can be used as a wildcard to represent a single character.

A) %
B) $
C) _
D) *
Question
What do most developers prefer to use when developing applications that work with an intensive amount of data?

A) text files
B) binary files
C) a database management system
D) Java DB
Question
A result set is an object that is somewhat similar to a collection and

A) contains the results of an SQL statement.
B) allows the program to execute an SQL statement.
C) predicts the outcome of an SQL statement.
D) provides rules for how an SQL statement should be executed.
Question
What does JDBC stand for?

A) Java data binary collection
B) Java database connectivity
C) Java database collection
D) Java data basic computation
Question
Which Statement interface method should be used to execute an INSERT statement?

A) executeUpdate
B) executeStatement
C) executeQuery
D) executeSQL
Question
The DBMS works directly with the data, and sends the results of operations

A) back to the application.
B) along the encrypted data path.
C) to the unified data component.
D) back to the Web server.
Question
What will happen if you try to store duplicate data in a primary key column?

A) The column is duplicated.
B) An error will occur.
C) The duplicate data will have concurrency issues.
D) The primary key column will not display the duplicate data.
Question
SQL stands for

A) structured query language.
B) standard equivalent language.
C) semiconductor qualified language.
D) simple equation library.
Question
Which Statement interface method should be used to execute a SELECT statement?

A) executeSQL
B) executeStatement
C) executeUpdate
D) executeQuery
Question
The data that is stored in a row is divided into which of the following?

A) sections
B) tables
C) bytes
D) columns
Question
If you wish to sort the results of an SQL query, you can use the ________ clause.

A) SORT BY
B) ALIGN ROW
C) ORDER BY
D) ASCEND
Question
In SQL, this is the not-equal-to operator.

A) !=
B) NOT
C) ||
D) <>
Question
What SQL operator can be used to disqualify search criteria in a WHERE clause?

A) AND
B) NOT
C) EXCLUDE
D) NOR
Question
What is the default concurrency level of a ResultSet object?

A) Public
B) Updatable
C) Private
D) Read-only
Question
No two rows in a table can have the same value in the primary key column.
Question
In an entity relationship diagram, the primary keys are denoted with

A) (PK).
B) (1).
C) (KEY).
D) (PRIME).
Question
A qualified column name takes the following form:

A) ColumnName.TableName
B) TableName.ColumnName
C) RowName.TableName
D) DatabaseURL.ColumnName
Question
Which of the following is a Swing component that displays data in a two-dimensional table?

A) JTable
B) JFrame
C) JPanel
D) JTable2D
Question
SQL statements that are stored in the DBMS are called resident queries.
Question
In SQL, the equal to operator is ==, which is the same as Java.
Question
In SQL, this statement is used to change the contents of an existing row in a table.

A) SET ROW
B) CHANGE
C) UPDATE
D) REFRESH
Question
A column in one table that references a primary key in another table is known as what?

A) Secondary key
B) Foreign key
C) Referential key
D) Meta key
Question
In SQL, the REFERENCES qualifier ensures referential integrity between tables.
Question
System designers commonly use UML diagrams to show the relationships between database tables.
Question
This SQL statement can be used to create a database table.

A) NEW TABLE
B) MAKE TABLE
C) BUILD TABLE
D) CREATE TABLE
Question
Which SQL statement is used to delete a table from a database?

A) REM TABLE
B) DEL TABLE
C) DROP TABLE
D) ERASE TABLE
Question
The columns in a table are assigned SQL data types.
Question
In a transaction, all updates to database must be successfully executed.
Question
In SQL, you use this statement to delete one or more rows from a table.

A) DELETE
B) DROP ROW
C) REMOVE
D) PURGE
Question
The term commit refers to undoing changes to a database.
Question
What term refers to data that describes other data?

A) Pseudo-data
B) Micro data
C) Abstract data
D) Meta data
Question
Although SQL is a language, you don't use it to write applications.
Question
SQL does not provide functions for performing calculations.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 16: Databases
1
What string lists the protocol that should be used to access a database, the name of the database, and potentially other items?

A) JDBC driver
B) Database URL
C) JDBC locator
D) Database specifier
B
2
Of the following column names, which one is most likely a primary key column?

A) Price
B) Description
C) ItemNumber
D) Quantity
C
3
This type of SQL statement is used to retrieve the rows from a table.

A) GET
B) SELECT
C) READ
D) RETRIEVE
B
4
Which of the following shows how a single quote is represented as part of a string in SQL?

A) _'
B) "'"
C) /'
D) ''
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
This is the standard language for working with database management systems.

A) SQL
B) BASIC
C) ADA
D) COBOL
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
What SQL operator can be used to perform a search for a substring?

A) STR
B) LIKE
C) WHERE
D) SUB
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
You use this statement in SQL to insert a new row into a table.

A) UPDATE
B) ADD
C) NEW
D) INSERT
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
In SQL, this character can be used as a wildcard to represent a single character.

A) %
B) $
C) _
D) *
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
What do most developers prefer to use when developing applications that work with an intensive amount of data?

A) text files
B) binary files
C) a database management system
D) Java DB
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
A result set is an object that is somewhat similar to a collection and

A) contains the results of an SQL statement.
B) allows the program to execute an SQL statement.
C) predicts the outcome of an SQL statement.
D) provides rules for how an SQL statement should be executed.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
What does JDBC stand for?

A) Java data binary collection
B) Java database connectivity
C) Java database collection
D) Java data basic computation
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
Which Statement interface method should be used to execute an INSERT statement?

A) executeUpdate
B) executeStatement
C) executeQuery
D) executeSQL
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
The DBMS works directly with the data, and sends the results of operations

A) back to the application.
B) along the encrypted data path.
C) to the unified data component.
D) back to the Web server.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
What will happen if you try to store duplicate data in a primary key column?

A) The column is duplicated.
B) An error will occur.
C) The duplicate data will have concurrency issues.
D) The primary key column will not display the duplicate data.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
SQL stands for

A) structured query language.
B) standard equivalent language.
C) semiconductor qualified language.
D) simple equation library.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
Which Statement interface method should be used to execute a SELECT statement?

A) executeSQL
B) executeStatement
C) executeUpdate
D) executeQuery
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
The data that is stored in a row is divided into which of the following?

A) sections
B) tables
C) bytes
D) columns
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
If you wish to sort the results of an SQL query, you can use the ________ clause.

A) SORT BY
B) ALIGN ROW
C) ORDER BY
D) ASCEND
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
In SQL, this is the not-equal-to operator.

A) !=
B) NOT
C) ||
D) <>
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
What SQL operator can be used to disqualify search criteria in a WHERE clause?

A) AND
B) NOT
C) EXCLUDE
D) NOR
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
What is the default concurrency level of a ResultSet object?

A) Public
B) Updatable
C) Private
D) Read-only
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
No two rows in a table can have the same value in the primary key column.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
In an entity relationship diagram, the primary keys are denoted with

A) (PK).
B) (1).
C) (KEY).
D) (PRIME).
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
A qualified column name takes the following form:

A) ColumnName.TableName
B) TableName.ColumnName
C) RowName.TableName
D) DatabaseURL.ColumnName
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following is a Swing component that displays data in a two-dimensional table?

A) JTable
B) JFrame
C) JPanel
D) JTable2D
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
26
SQL statements that are stored in the DBMS are called resident queries.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
In SQL, the equal to operator is ==, which is the same as Java.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
In SQL, this statement is used to change the contents of an existing row in a table.

A) SET ROW
B) CHANGE
C) UPDATE
D) REFRESH
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
A column in one table that references a primary key in another table is known as what?

A) Secondary key
B) Foreign key
C) Referential key
D) Meta key
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
In SQL, the REFERENCES qualifier ensures referential integrity between tables.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
System designers commonly use UML diagrams to show the relationships between database tables.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
This SQL statement can be used to create a database table.

A) NEW TABLE
B) MAKE TABLE
C) BUILD TABLE
D) CREATE TABLE
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
Which SQL statement is used to delete a table from a database?

A) REM TABLE
B) DEL TABLE
C) DROP TABLE
D) ERASE TABLE
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
The columns in a table are assigned SQL data types.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
In a transaction, all updates to database must be successfully executed.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
36
In SQL, you use this statement to delete one or more rows from a table.

A) DELETE
B) DROP ROW
C) REMOVE
D) PURGE
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
The term commit refers to undoing changes to a database.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
What term refers to data that describes other data?

A) Pseudo-data
B) Micro data
C) Abstract data
D) Meta data
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
Although SQL is a language, you don't use it to write applications.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
SQL does not provide functions for performing calculations.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 40 flashcards in this deck.