Database (DBMS) Quiz 2
Test your knowledge of database management systems including SQL commands, ACID properties, transactions, JDBC connectivity, and DDL statements.
Questions
You are managing the in-house database systems.You need to ensure that the user AMY can execute all operations against the SALES relation. What SQL statement sequence will you use?
- GRANT ALL PRIVILEGES WHERE FROM ON TO
- GRANT ALL PRIVILEGES TO WHERE FROM
- GRANT ALL PRIVILEGES WHERE FROM TO
- GRANT ALL PRIVILEGES ON TO
- GRANT ALL PRIVILEGES ON WHERE FROM
You run a SELECT statement, and multiple duplicates of values are retrieved. What keyword can you use to retrieve only the non duplicate data?
- DUBPLICATE
- INDIVIDUAL
- SEPARATE
- DISTINCT
- INDEX
Which of the following elements are the valid components of ACID in a relational database transaction?
- Atomicity
- Consistency
- Isolation
- Durability
- All of the above
In JDBC, what represents a single instance of a particular database session?
- a thread
- an opened connection
- a closed connection
- a pipe
What statement do you use to remove a schema and its related objects from your relational database?
- DROP SCHEMA CASCADE
- DROP SCHEMA RESTRICT
- DROP SCHEMA ALL
- DROP SCHEMA CLEAR
- DROP SCHEMA OPTS
In a properly designed DBMS, concurrency control is provided by which of the following components.
- Process Manager
- Cache Manager
- Transaction Manager
- Lock Manager
- C&D
Which of the following are valid CREATE statements in the world of DDL?
- CREATE SCHEMA
- CREATE TABLE
- CREATE DOMAIN
- CREATE INDEX
- All of the above
What statement do you use to remove a schema and ensure that the removal takes place only if the schema is empty?
- DROP SCHEMA RESTRICT
- DROP SCHEMA OPTS
- DROP SCHEMA CASCADE
- DROP SCHEMA CLEAR
What is used by a properly designed DBMS to enable databases to be returned to the pre-transaction state should errors occur?
- two phase commit
- prefetch transaction
- one phase commit
- backup and restore
- All of the above
Under JDBC, which of the following types of instances can be created by the Connection object?
- PreparedStatement
- CallableStatement
- Statement
- SQLStatement
- AB&C