NSCT Databases MCQs
The Databases area covers how data is modelled, queried and protected: the relational model, relational algebra, SQL, normalisation, transactions, concurrency, recovery, indexing, query optimisation and NoSQL. It carries 10% of the NSCT, according to HEC's Areas of Competencies. In 2026 candidates averaged 42.3% accuracy here, one of the four weakest areas, per the HEC NSCT report and APP.
Topics in this area
HEC lists 17 topics, shown here in the official order.
- Introduction to Database Systems: why a DBMS beats flat files, and the roles of users and the database administrator (DBA).
- Database System Architecture: the three-schema architecture and data independence.
- Data Models: the ER model, entities, attributes, relationships and cardinality.
- Relational Database Concepts: relations, tuples, keys and integrity constraints.
- Relational Algebra & Calculus: selection, projection, joins, set operations and tuple calculus.
- Structured Query Language (SQL): DDL and DML, SELECT, WHERE, GROUP BY and HAVING.
- Advanced SQL: joins, subqueries, views, triggers and stored procedures.
- Database Design & Normalization: functional dependencies and 1NF to BCNF.
- Transaction Management: ACID properties, transaction states and schedules.
- Concurrency Control: serialisability, two-phase locking, timestamps and deadlock.
- Recovery Management: logs, checkpoints, undo and redo.
- Indexing & File Organization: primary and secondary indexes, B+ trees and hashing.
- Query Processing & Optimization: query plans, cost estimation and join algorithms.
- Database Security: authorisation, GRANT and REVOKE, and SQL injection.
- Distributed Databases: fragmentation, replication and the CAP theorem.
- NoSQL & Modern Databases: document, key-value, column and graph stores, and BASE.
- Data Warehousing & Data Mining (Introductory): OLAP versus OLTP, star schemas and ETL.
What questions in this area test
HEC's report groups questions into three tiers: Understanding (recall and definitions, 49.5% nationally), Application (applying a known rule to a constrained problem, 45.1%) and Analysis (multi-step reasoning and debugging, 44.8%).
Here, understanding questions ask what a key or an ACID property means. Application questions ask what rows a SQL query returns, the result of a relational algebra expression, or the highest normal form of a given relation. Analysis questions give a schedule of transactions or a slow query and ask whether it is serialisable or how to improve it.
How to study this area
Our recommendation: about 6 hours out of a 60-hour subject plan, in line with its 10% weightage. With a 42.3% national average, extra time on SQL and normalisation is well spent.
A sensible order: introduction, architecture and data models, relational concepts and algebra, SQL and advanced SQL, normalisation, then transactions, concurrency and recovery, and finally indexing, optimisation, security, distributed, NoSQL and warehousing. Most marks go on normalisation (finding keys from functional dependencies) and on reading query output, so practise both with real tables.
Deep practice, revision and mocks
- SQL joins, SQL query output, normalisation practice, relational algebra practice and ACID properties.
- Databases revision notes and the Databases cheat sheet.
- Subject-wise mock tests for timed practice.
Related areas: Web Development MCQs and DSA MCQs (B-trees and hashing).
FAQs
What is the difference between WHERE and HAVING?
WHERE filters individual rows before grouping, so it cannot use aggregate functions directly. HAVING filters groups after GROUP BY has been applied, so it can use aggregates such as COUNT(*) > 5. A query can use both: WHERE to pick the rows, then HAVING to keep only the groups that meet a condition.
How do I find the normal form of a relation?
First find the candidate keys from the functional dependencies. A relation is in 2NF if it is in 1NF and no non-prime attribute depends on part of a candidate key. It is in 3NF if, for every non-trivial dependency X → A, X is a superkey or A is a prime attribute. BCNF is stricter: X must be a superkey.
What do the ACID properties mean?
Atomicity: a transaction runs completely or not at all. Consistency: it moves the database from one valid state to another. Isolation: concurrent transactions do not see each other's partial work. Durability: once committed, changes survive failures. Logging and recovery support atomicity and durability, while concurrency control provides isolation.
What is the difference between an inner join and a left join?
An inner join returns only rows that have a match in both tables. A left (outer) join returns every row from the left table, plus matching rows from the right table; where there is no match, the right table's columns are NULL. Join questions often test exactly how many rows each type returns.
Next step
Start with SQL joins practice, then test every area together in an NSCT mock test.