Database Answers For Exit-Exam - by Aklilu Thomas - 2016 e
Database Answers For Exit-Exam - by Aklilu Thomas - 2016 e
Choose the best answer for the following multiple choice questions.
1. Which of the following best defines a database?
a) A collection of related tables b) A collection of files stored on a computer
c) A collection of data stored in memory d) A collection of programming code
Answer: c) The process of organizing data to eliminate redundancy and improve efficiency
6. In the context of a database system, which of the following best describes a user?
a) An individual who interacts directly with the database system
b) A program or application that accesses the database
c) A database administrator responsible for managing the system
d) A hardware component used to store the database
Answer: c) Declarative
Answer: d) WHERE
34. Which of the following normalization forms ensures that each non-key attribute is
functionally dependent on the entire primary key?
a) First Normal Form (1NF) b) Second Normal Form (2NF)
c) Third Normal Form (3NF) d) Boyce-Codd Normal Form (BCNF)
Answer: b) Decomposition
36. Which of the following normalization forms addresses the issue of transitive functional
dependencies?
a) First Normal Form (1NF) b) Second Normal Form (2NF)
c) Third Normal Form (3NF) d) Boyce-Codd Normal Form (BCNF)
Answer: c) SELECT
43. The SQL statement "SELECT * FROM Customers" retrieves:
a) All columns from the Customers table
b) Only the primary key from the Customers table
c) All rows from the Customers table
d) Only the first row from the Customers table
51. What is the main advantage of an object-oriented database over a relational database?
a) Improved query performance
b) Enhanced data security
c) Support for complex data types and relationships
d) Simplified data modeling
Answer: b) Estimating the execution time and choosing the plan with the lowest cost
62. In query optimization, cardinality estimation refers to:
a) Estimating the number of tables in a database
b) Estimating the number of columns in a table
c) Estimating the number of rows in a table or result set
d) Estimating the number of joins in a query
Answer: a) Two or more transactions are waiting for each other to release resources.
72. Which of the following is a database recovery technique that brings the database to a
consistent state after a system failure?
a) Checkpointing b) Logging c) Rollback d) Restart
Answer: c) Rollback
73. Logging in database recovery involves:
a) Creating a backup of the database
b) Storing a record of all changes made to the database in a log file
c) Rebuilding the database from scratch
d) Performing periodic integrity checks on the database
Answer: b) Storing a record of all changes made to the database in a log file
74. Checkpointing in database recovery refers to:
a) Creating a copy of the database at a specific point in time
b) Storing a record of all changes made to the database in a log file
c) Rebuilding the database from scratch
d) Performing periodic integrity checks on the database
Answer: b) Redo
76. In database recovery, the undo phase involves:
a) Reapplying changes made by a committed transaction
b) Rolling back changes made by an incomplete or failed transaction
c) Creating a backup of the database
d) Performing integrity checks on the database
Answer: a) Breaking data into smaller pieces and storing them at different locations
84. Concurrency control in distributed database systems refers to:
a) Ensuring that multiple transactions can access and modify the same data concurrently
b) Managing the distribution of data across multiple sites
c) Coordinating the execution of distributed transactions to maintain data consistency
d) Encrypting data to prevent unauthorized access