Data Models into Database Designs
Q. In a relational database, what does a foreign key represent?
-
A.
A unique identifier for a table
-
B.
A reference to a primary key in another table
-
C.
An attribute of an entity
-
D.
A constraint on data types
Solution
A foreign key is a field (or collection of fields) in one table that uniquely identifies a row of another table.
Correct Answer: B — A reference to a primary key in another table
Q. In a relational database, what is a foreign key?
-
A.
A unique identifier for a record
-
B.
A key that links two tables together
-
C.
A key that is not indexed
-
D.
A key used for data encryption
Solution
A foreign key is a field (or collection of fields) in one table that uniquely identifies a row of another table, establishing a link between them.
Correct Answer: B — A key that links two tables together
Q. In an Entity-Relationship (ER) model, what does a diamond shape represent?
-
A.
Entity
-
B.
Attribute
-
C.
Relationship
-
D.
Weak entity
Solution
In an ER model, a diamond shape represents a relationship between entities.
Correct Answer: C — Relationship
Q. What does the term 'denormalization' refer to in database design?
-
A.
The process of reducing redundancy
-
B.
The process of increasing redundancy for performance
-
C.
The process of normalizing data
-
D.
The process of creating indexes
Solution
Denormalization refers to the process of increasing redundancy in a database to improve performance, often at the cost of data integrity.
Correct Answer: B — The process of increasing redundancy for performance
Q. What is a transaction in the context of a database management system?
-
A.
A single SQL command
-
B.
A sequence of operations treated as a single unit
-
C.
A backup of the database
-
D.
A method of data retrieval
Solution
A transaction is a sequence of operations that are treated as a single unit of work, ensuring data integrity.
Correct Answer: B — A sequence of operations treated as a single unit
Q. What is the main advantage of using indexing in a database?
-
A.
Increases data redundancy
-
B.
Improves data integrity
-
C.
Speeds up data retrieval
-
D.
Simplifies database design
Solution
Indexing improves data retrieval speed by allowing the database to find data more quickly.
Correct Answer: C — Speeds up data retrieval
Q. What is the primary purpose of normalization in database design?
-
A.
To increase data redundancy
-
B.
To eliminate data anomalies
-
C.
To improve query performance
-
D.
To simplify database architecture
Solution
Normalization is used to eliminate data anomalies and ensure data integrity by organizing data into related tables.
Correct Answer: B — To eliminate data anomalies
Q. What is the purpose of a data model in database design?
-
A.
To define the physical storage of data
-
B.
To represent data structures and relationships
-
C.
To optimize query performance
-
D.
To enforce data integrity constraints
Solution
A data model represents data structures and relationships, serving as a blueprint for database design.
Correct Answer: B — To represent data structures and relationships
Q. What is the purpose of a database schema?
-
A.
To store data
-
B.
To define the structure of the database
-
C.
To manage user access
-
D.
To optimize queries
Solution
A database schema defines the structure of the database, including tables, fields, relationships, and constraints.
Correct Answer: B — To define the structure of the database
Q. What is the purpose of concurrency control in a DBMS?
-
A.
To manage data redundancy
-
B.
To ensure data integrity during simultaneous transactions
-
C.
To optimize query performance
-
D.
To simplify database design
Solution
Concurrency control ensures data integrity when multiple transactions occur simultaneously in a database.
Correct Answer: B — To ensure data integrity during simultaneous transactions
Q. Which of the following is NOT a property of transactions in a DBMS?
-
A.
Atomicity
-
B.
Consistency
-
C.
Isolation
-
D.
Redundancy
Solution
Redundancy is not a property of transactions; the properties are known as ACID: Atomicity, Consistency, Isolation, and Durability.
Correct Answer: D — Redundancy
Showing 1 to 11 of 11 (1 Pages)