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?
BeginnerShow 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?
BeginnerShow 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?
BeginnerShow 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?
BeginnerShow 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?
BeginnerShow 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?
BeginnerShow 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.
BeginnerShow 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?
IntermediateShow 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?
IntermediateShow 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?
IntermediateShow 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?
IntermediateShow 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?
IntermediateShow 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?
IntermediateShow 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?
IntermediateShow 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?
AdvancedShow 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?
AdvancedShow 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?
AdvancedShow 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?
AdvancedShow 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?
AdvancedShow 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.
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