Database Management Systems (DBMS): 19 MCQs with answers

All 19 multiple-choice questions from this kit, free and with no sign-up.

Warm-up · 7 questions

Q1. Which statement correctly distinguishes a database from a DBMS?

Beginner
A A database is the software; a DBMS is the data. B Both are software tools with different names. C A database is the data; a DBMS is the software managing it. D A database is hardware; a DBMS is software.
Show answer & explanation

A database is the data; a DBMS is the software managing it.

A database is the organized collection of data itself, while a DBMS is the software that defines, stores, retrieves, and manages that data.

Q2. Which level of the three-level architecture describes how bytes are actually stored on disk?

Beginner
A View level B Logical level C Physical level D Application level
Show answer & explanation

Physical level

The physical level deals with files, blocks, and indexes on disk. The logical level describes tables and relationships, and the view level shows customized slices to users.

Q3. A bank upgrades its storage hardware without rewriting its ATM software. Which property of DBMS architecture makes this possible?

Beginner
A Referential integrity B Durability C Normalization D Data independence
Show answer & explanation

Data independence

Data independence, provided by the three-level architecture, lets you change physical storage without breaking applications or user views.

Q4. What does the 'A' in ACID stand for?

Beginner
A Authentication B Availability C Atomicity D Aggregation
Show answer & explanation

Atomicity

ACID stands for Atomicity, Consistency, Isolation, Durability. Atomicity means a transaction is all-or-nothing.

Q5. Which SQL category does `CREATE TABLE` belong to?

Beginner
A DML B TCL C DDL D DCL
Show answer & explanation

DDL

DDL (Data Definition Language) defines structure and includes CREATE, ALTER, and DROP. DML works with data, DCL controls access, and TCL manages transactions.

Q6. Which key uniquely identifies each row in a table?

Beginner
A Primary key B Foreign key C Junction key D Composite view
Show answer & explanation

Primary key

A primary key uniquely identifies each row. A foreign key references a primary key in another table to create a relationship.

Q7. ACID properties (Atomicity, Consistency, Isolation, Durability) are the guarantees that make DBMS transactions reliable under crashes and concurrent access.

Beginner
A True B False
Show answer & explanation

True

ACID properties (Atomicity, Consistency, Isolation, Durability) are the guarantees that make DBMS transactions reliable under crashes and concurrent access.

Building up · 7 questions

Q8. A student tries to enroll in a course using a student_id that does not exist in the Student table, and the DBMS rejects the insert. Which mechanism caused the rejection?

Intermediate
A Normalization B Query optimization C Referential integrity D Buffer management
Show answer & explanation

Referential integrity

Referential integrity enforces foreign key constraints, preventing orphan records. Since Enrollment.student_id references Student.student_id, a non-existent student is rejected.

Q9. Two ATMs withdraw from the same account at the same instant, yet the balance never goes wrong. Which ACID property is responsible?

Intermediate
A Consistency B Durability C Atomicity D Isolation
Show answer & explanation

Isolation

Isolation prevents concurrent transactions from interfering with each other, so simultaneous withdrawals do not double-spend.

Q10. A customer's address is stored in every order row. When the address changes, one row is missed and the database now reports two different addresses. Which problem does normalization prevent?

Intermediate
A Update anomaly B Index corruption C Deadlock D Query timeout
Show answer & explanation

Update anomaly

Normalization makes each fact live in exactly one place, preventing update anomalies where a change is applied to some copies but not others.

Q11. Which sequence correctly orders the stages a query passes through in a DBMS?

Intermediate
A Parsing → execution → optimization → storage access B Parsing → optimization → execution → storage access C Execution → parsing → optimization → storage access D Optimization → parsing → execution → storage access
Show answer & explanation

Parsing → optimization → execution → storage access

The parser checks syntax and builds a parse tree, the optimizer chooses the cheapest plan, the execution engine runs it, and the storage manager handles files, pages, and indexes.

Q12. A table has a composite key of (student_id, course_id), and the column student_name depends only on student_id. Which normal form is violated?

Intermediate
A 2NF B 3NF C 1NF D No normal form is violated
Show answer & explanation

2NF

2NF removes partial dependencies — a non-key attribute depending on only part of a composite key. Here student_name depends on student_id alone, violating 2NF.

Q13. Why is SQL described as a declarative language?

Intermediate
A You must write the exact algorithm for retrieving rows. B It declares variables before any query can run. C It can only declare table structures, not query data. D You specify what you want, and the DBMS decides how to get it.
Show answer & explanation

You specify what you want, and the DBMS decides how to get it.

In SQL you state what result you want; the query optimizer figures out the how by choosing an execution plan.

Q14. Which statement about the DBA and the DBMS is correct?

Intermediate
A Both refer to the same component of a database system. B The DBA is the software; the DBMS is the person. C The DBA is the human administrator; the DBMS is the software tool. D The DBA only writes SQL queries for users.
Show answer & explanation

The DBA is the human administrator; the DBMS is the software tool.

The DBA is the human role that installs, configures, backs up, tunes, and secures the DBMS. The DBMS is the tool; the DBA is the person using it.

Topper level · 5 questions

Q15. A query that returned results in milliseconds suddenly takes minutes, even though the data volume barely changed. Which component's decision most directly explains the slowdown?

Advanced
A The view level exposed more columns to the user. B The DBA changed the primary key definition. C The optimizer chose a more expensive execution plan. D The parser chose a different syntax tree.
Show answer & explanation

The optimizer chose a more expensive execution plan.

The same query can run in milliseconds or minutes depending on the plan chosen. The optimizer's choice of index and join order is the critical performance factor.

Q16. A system must store highly connected social-network data where relationships between entities are the primary query target. Which DBMS type best fits this need?

Advanced
A Graph NoSQL DBMS B Relational DBMS with a junction table C Object-oriented DBMS D Hierarchical DBMS
Show answer & explanation

Graph NoSQL DBMS

Graph stores such as Neo4j are designed for relationship-heavy data. A relational DBMS with a junction table can model many-to-many links but is not optimized for traversing deep relationship graphs.

Q17. A company is experiencing performance issues with its DBMS when executing complex queries. The DBA suspects that the query optimizer is not selecting the most efficient execution plan. Which of the following steps should the DBA take to diagnose and potentially resolve this issue?

Advanced
A Analyze the execution plan generated by the query optimizer to identify inefficiencies. B Review the physical storage of the database to ensure optimal indexing. C Increase the size of the buffer manager to improve caching. D Rewrite the SQL queries to simplify them for the optimizer.
Show answer & explanation

Analyze the execution plan generated by the query optimizer to identify inefficiencies.

Analyzing the execution plan generated by the query optimizer allows the DBA to identify inefficiencies in how the query is being executed, which is crucial for diagnosing performance issues.

Q18. A database schema has been designed with multiple tables that include foreign keys to maintain referential integrity. However, a new requirement arises to allow certain records to be deleted without violating this integrity. Which approach should the DBA implement to address this requirement while still maintaining data integrity?

Advanced
A Create a separate archive table for deleted records. B Change the foreign key constraints to allow null values. C Remove foreign key constraints entirely. D Implement cascading deletes on the foreign key constraints.
Show answer & explanation

Change the foreign key constraints to allow null values.

Allowing null values in foreign key constraints enables the deletion of records without violating referential integrity, as it permits the foreign key to point to no record.

Q19. A DBMS is designed to handle concurrent transactions from multiple users. If two transactions are executed simultaneously, one updating a bank account balance and the other checking the balance, which isolation level should be set to ensure that the balance remains consistent and that the checking transaction does not see an intermediate state?

Advanced
A Serializable B Read Committed C Repeatable Read D Read Uncommitted
Show answer & explanation

Repeatable Read

The Repeatable Read isolation level ensures that if a transaction reads a value, it will see the same value throughout its execution, preventing it from seeing intermediate states caused by concurrent updates.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Exam prep

Get Veda free See what students get

Free to start · No ads · Works in 42 languages