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
Learn More →
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
Learn More →
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
Learn More →
Q. In database architecture, what is the purpose of a data dictionary?
-
A.
To store user data
-
B.
To define the structure of the database
-
C.
To manage transactions
-
D.
To optimize queries
Solution
A data dictionary defines the structure of the database, including tables, fields, and relationships.
Correct Answer:
B
— To define the structure of the database
Learn More →
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
Learn More →
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
Learn More →
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
Learn More →
Q. What is the main function of a foreign key in a relational database?
-
A.
To uniquely identify a record
-
B.
To establish a relationship between two tables
-
C.
To enforce data integrity
-
D.
To improve query performance
Solution
A foreign key is used to establish a relationship between two tables and enforce referential integrity.
Correct Answer:
B
— To establish a relationship between two tables
Learn More →
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
Learn More →
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
Learn More →
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
Learn More →
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
Learn More →
Q. Which of the following is NOT a characteristic of a relational database?
-
A.
Data is stored in tables
-
B.
Data can be accessed using SQL
-
C.
Data is stored in a hierarchical structure
-
D.
Data relationships are established through foreign keys
Solution
Relational databases store data in tables, not in a hierarchical structure.
Correct Answer:
C
— Data is stored in a hierarchical structure
Learn More →
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
Learn More →
Q. Which of the following is NOT a type of database normalization?
-
A.
First Normal Form (1NF)
-
B.
Second Normal Form (2NF)
-
C.
Third Normal Form (3NF)
-
D.
Fourth Normal Form (4NF)
Solution
All listed options are types of normalization; however, 4NF is less commonly referenced compared to the first three forms.
Correct Answer:
D
— Fourth Normal Form (4NF)
Learn More →
Showing 1 to 15 of 15 (1 Pages)