Database Management System (DBMS) MCQs

Computer

Database Management System (DBMS) MCQs

Practice DBMS MCQs covering database, data, information, DBMS, RDBMS and SQL basics with answers and explanations.

278
Total Questions

Practice Questions

Page 10 of 14
Question #181
In a Relational Database Management System (RDBMS), data is logically organized and stored in which form?
A. Graphs
B. Flat text files
C. Tables
D. Trees

Correct Answer: Option C


Explanation:
In an RDBMS, data is organized into relations, which are logically represented as two-dimensional tables consisting of rows and columns.

This question belongs to: Computer Database Management System (DBMS)
Question #182
What is the alternative mathematical term used for a 'Table' in a relational database model?
A. Attribute
B. Tuple
C. Relation
D. Domain

Correct Answer: Option C


Explanation:
In relational model terminology introduced by E.F. Codd, a table is formally referred to as a relation.

This question belongs to: Computer Database Management System (DBMS)
Question #183
In relational database terminology, a row in a table is precisely called a what?
A. Attribute
B. Tuple
C. Field
D. Relation

Correct Answer: Option B


Explanation:
A single row or record in a relational database table is formally called a tuple.

This question belongs to: Computer Database Management System (DBMS)
Question #184
What is a column in a relational database table formally called?
A. Tuple
B. Attribute
C. Entity
D. Degree

Correct Answer: Option B


Explanation:
A column in a database table represents a property or characteristic of the entity and is formally known as an attribute.

This question belongs to: Computer Database Management System (DBMS)
Question #185
The total number of attributes (columns) present in a relation determines its what?
A. Degree
B. Domain
C. Schema
D. Cardinality

Correct Answer: Option A


Explanation:
The number of attributes or columns in a relation is defined as the degree of that relation.

This question belongs to: Computer Database Management System (DBMS)
Question #186
The total number of tuples (rows) contained within a relational database table is called its what?
A. Cardinality
B. Density
C. Dimension
D. Degree

Correct Answer: Option A


Explanation:
The number of tuples or rows in a relation is defined as the cardinality of that relation.

This question belongs to: Computer Database Management System (DBMS)
Question #187
Which of the following SQL commands belongs to the Data Definition Language (DDL) category?
A. UPDATE
B. CREATE
C. INSERT
D. SELECT

Correct Answer: Option B


Explanation:
The CREATE command is a DDL statement because it defines, modifies, or creates database structures like tables, schemas, or indexes.

This question belongs to: Computer Database Management System (DBMS)
Question #188
Which SQL command is used to permanently remove an entire table structure along with all its data from the database?
A. REMOVE
B. DELETE
C. DROP
D. TRUNCATE

Correct Answer: Option C


Explanation:
The DROP command is a DDL statement that completely removes a table's structure, definition, and all its associated data from the database.

This question belongs to: Computer Database Management System (DBMS)
Question #189
Which of the following commands is used to modify the structure of an existing table, such as adding or deleting a column?
A. MODIFY
B. CHANGE
C. ALTER
D. UPDATE

Correct Answer: Option C


Explanation:
The ALTER command is part of DDL and is used to modify the schema or structural definition of an existing database object like a table.

This question belongs to: Computer Database Management System (DBMS)
Question #190
Which SQL command is used to add new rows of data into an existing table?
A. INSERT
B. UPDATE
C. ADD
D. APPEND

Correct Answer: Option A


Explanation:
The INSERT command is a Data Manipulation Language (DML) statement used to add new records/rows to a table.

This question belongs to: Computer Database Management System (DBMS)
Question #191
Which clause is used in SQL queries to filter rows and retrieve only those records that satisfy a specific condition?
A. HAVING
B. WHERE
C. GROUP BY
D. ORDER BY

Correct Answer: Option B


Explanation:
The WHERE clause is used to filter records based on a specified condition before any grouping takes place.

This question belongs to: Computer Database Management System (DBMS)
Question #192
What type of key uniquely identifies each record in a table and cannot contain NULL values?
A. Foreign Key
B. Secondary Key
C. Primary Key
D. Candidate Key

Correct Answer: Option C


Explanation:
A Primary Key is a unique identifier for each tuple in a relation. It enforces entity integrity and strictly cannot accept NULL values.

This question belongs to: Computer Database Management System (DBMS)
Question #193
A key that consists of more than one attribute to uniquely identify rows in a table is called a what?
A. Secondary Key
B. Primary Key
C. Composite Key
D. Foreign Key

Correct Answer: Option C


Explanation:
When a primary key or unique key comprises two or more columns (attributes) combined together, it is known as a Composite Key.

This question belongs to: Computer Database Management System (DBMS)
Question #194
Which key establishes a logical relationship between two tables by referencing the primary key of another table?
A. Alternate Key
B. Foreign Key
C. Candidate Key
D. Super Key

Correct Answer: Option B


Explanation:
A Foreign Key is an attribute or collection of attributes in one table that references the primary key of another table to maintain referential integrity.

This question belongs to: Computer Database Management System (DBMS)
Question #195
Any set of one or more attributes that collectively allow us to uniquely identify tuples in a relation is termed as a what?
A. Super Key
B. Local Key
C. Foreign Key
D. Secondary Key

Correct Answer: Option A


Explanation:
A Super Key is any set of attributes within a table that can uniquely identify a row. A candidate key is a minimal super key.

This question belongs to: Computer Database Management System (DBMS)
Question #196
Candidate keys that are not selected or designated as the primary key of a table are known as what?
A. Foreign Keys
B. Super Keys
C. Alternate Keys
D. Composite Keys

Correct Answer: Option C


Explanation:
Out of all available candidate keys, the one selected to identify rows uniquely is the primary key, and the remaining unselected candidate keys are called alternate keys.

This question belongs to: Computer Database Management System (DBMS)
Question #197
Which property of a DBMS ensures that all operations within a transaction are completed successfully, or none of them are executed at all?
A. Atomicity
B. Durability
C. Isolation
D. Consistency

Correct Answer: Option A


Explanation:
Atomicity follows the 'all-or-nothing' rule, ensuring that a transaction is either fully committed or completely rolled back if an error occurs.

This question belongs to: Computer Database Management System (DBMS)
Question #198
What does the letter 'D' stand for in the widely accepted ACID properties of database transactions?
A. Data
B. Definition
C. Dependency
D. Durability

Correct Answer: Option D


Explanation:
ACID stands for Atomicity, Consistency, Isolation, and Durability. Durability ensures that once a transaction commits, its changes survive system failures.

This question belongs to: Computer Database Management System (DBMS)
Question #199
The concept that prevents concurrent transactions from interfering with each other and creating data inconsistencies is known as what?
A. Consistency
B. Durability
C. Isolation
D. Atomicity

Correct Answer: Option C


Explanation:
Isolation ensures that the execution of concurrent transactions does not interfere with one another, making them appear as if they are executing sequentially.

This question belongs to: Computer Database Management System (DBMS)
Question #200
Which schema architecture level describes how the data is physically stored on disk storage media?
A. Logical Level
B. External Level
C. Conceptual Level
D. Internal Level

Correct Answer: Option D


Explanation:
The Internal (or Physical) level of the three-schema architecture describes the physical storage structure and access paths of the database.

This question belongs to: Computer Database Management System (DBMS)