Data Models MCQs for the NSCT
A data model is a set of concepts for describing a database's structure (data types, relationships and constraints), usually with basic operations. For the NSCT that mainly means the entity-relationship (ER) model, the relational model, and cardinality and participation constraints. Data Models is topic 3 of the 17 in the Databases area, which carries 10% of the NSCT according to HEC's Areas of Competencies. Candidates averaged 42.3% accuracy in this area in 2026, per the HEC NSCT report.
Elmasri-Navathe group data models into three categories. High-level or conceptual models include the ER model. Representational (implementation) models include the relational model and the older network and hierarchical models. Physical models describe record formats and access paths. Silberschatz also lists object-based models and the semi-structured model used by XML and JSON.
ER model
The ER model describes the world as entities (things), their attributes and the relationships among them. Elmasri-Navathe use Chen-style notation:
| Symbol | Meaning | Example |
|---|---|---|
| Rectangle | Entity type | STUDENT |
| Double rectangle | Weak entity type | DEPENDENT |
| Diamond / double diamond | Relationship / identifying relationship | ENROLS / DEPENDENTS_OF |
| Oval, underlined name | Key attribute | Roll |
| Double oval | Multivalued attribute | PhoneNumbers |
| Dashed oval | Derived attribute | Age (from BirthDate) |
| Oval with sub-ovals | Composite attribute | Name → First, Last |
| Double line | Total participation | Every DEPENDENT has an EMPLOYEE |
A weak entity has no key of its own. It is identified by its owner's key plus its partial key, which is drawn with a dashed underline. The degree of a relationship type is the number of entity types in it: unary (recursive, with role names such as supervisor and supervisee), binary or ternary.
Silberschatz's recent editions draw attributes inside the entity rectangle and use UML-style 1..* labels instead of separate ovals. The concepts are the same; only the drawing differs.
Exam angle: symbol-matching questions are easy marks. Learn the double, dashed and underlined variants.
Relational model
The relational model, introduced by Codd in 1970, represents data as relations (tables). A row is a tuple, a column header is an attribute, and each attribute draws values from a domain. A relation's degree is its number of attributes and its cardinality is its number of tuples. A formal relation is a set, so its tuples are distinct and unordered, and in the basic model every value is atomic.
Here are the standard ER-to-relational mapping rules (Elmasri-Navathe):
| ER construct | Becomes |
|---|---|
| Strong entity | A relation with its simple attributes; composite attributes are flattened and derived ones are not stored |
| Weak entity | A relation with the owner's key added; PK = owner key + partial key |
| 1:1 relationship | A foreign key, preferably on the side with total participation |
| 1:N relationship | A foreign key on the N side |
| M:N relationship | A new relation; PK = both keys; it also holds relationship attributes such as Hours |
| Multivalued attribute | A new relation (owner key, value) |
| n-ary relationship | A new relation holding all participants' keys |
Example: STUDENT M:N COURSE with attribute Grade gives ENROLS(Roll, Code, Grade) with primary key (Roll, Code).
Exam angle: "minimum number of tables" questions. Count the entities, the M:N and n-ary relationships and the multivalued attributes. 1:1 and 1:N relationships add nothing. If a 1:1 has total participation on both sides, the two entities can merge into one relation.
Cardinality
The cardinality ratio limits how many relationship instances an entity can take part in: 1:1, 1:N or M:N. The participation constraint says whether every entity must take part (total) or not (partial). Together these are the structural constraints.
Elmasri-Navathe's (min, max) notation writes both at once, beside the entity it constrains:
EMPLOYEE (1,1) ── WORKS_FOR ── (4,N) DEPARTMENT
Each employee works for exactly one department, and each department has at least 4 employees. With 12 departments you need at least 48 employees. With only 30 employees, at most 7 departments are possible.
Watch the placement. In Chen's notation for the same 1:N relationship, the "N" sits beside EMPLOYEE. In (min, max) notation, (1,1) sits beside EMPLOYEE. The two notations read in opposite directions.
Exam angle: "cardinality" has two meanings. For a relationship it is the 1:1, 1:N or M:N ratio; for a relation it is the number of tuples.
Common traps
- Giving a 1:N relationship its own table. A foreign key on the N side is enough.
- Moving an M:N relationship attribute (Hours) into one entity. It belongs to the pair.
- Reading (min, max) as if it were Chen's placement.
- Treating a weak entity's partial key as a full key.
- Assuming three binary relationships can replace one ternary relationship. They can create spurious combinations.
- Counting the primary key as an extra attribute when computing degree.
Worked examples
1. Understanding. What does a dashed oval show in an ER diagram? Answer: a derived attribute, whose value is computed from stored attributes, such as NumberOfEmployees counted from WORKS_FOR.
2. Application. Entities: HOSPITAL, DOCTOR, PATIENT. DOCTOR N:1 HOSPITAL, DOCTOR M:N PATIENT, and PATIENT has a multivalued attribute Allergies. What is the minimum number of relations? Answer: 5. That is 3 entities + 1 for the M:N relationship + 1 for Allergies; the N:1 becomes a foreign key in DOCTOR.
3. Analysis. STUDENT (0,5) — REGISTERS — (10,30) COURSE, with 8 courses and 20 students. What are the fewest and most REGISTERS instances possible? Answer: 80 and 100. Courses need at least 8 × 10 = 80. The maximum is the smaller of 8 × 30 = 240 and 20 × 5 = 100.
Practise
The quiz below has 100 questions on data models, filterable by tier and difficulty.
Practise: 100 questions
FAQs
What is the difference between the ER model and the relational model?
The ER model is a conceptual model for design. It shows entities, attributes and relationships in a diagram. The relational model is an implementation model that stores everything as tables with keys. Designers draw the ER diagram first, then map it to relations using standard rules.
What are cardinality and participation in DBMS?
Cardinality ratio (1:1, 1:N, M:N) is the maximum number of relationship instances an entity can take part in. Participation says whether every entity must take part (total, drawn as a double line) or may not (partial). Together they are the relationship's structural constraints.
What is a weak entity with an example?
A weak entity has no key of its own and depends on an owner entity. DEPENDENT is identified by the employee's Ssn plus the dependent's name. Similarly, a loan PAYMENT numbered 1, 2, 3 within each loan is identified by LoanNo plus PaymentNo.
Are hierarchical and network models still tested?
Usually only at definition level. The hierarchical model stores records as trees, as in IBM's IMS, and the network (CODASYL) model stores them as graphs. Know why trees struggle with M:N relationships. Most marks come from the ER and relational models.
Next step
Continue to Relational Database Concepts MCQs for keys and integrity constraints, then Database Design & Normalization. Revisit the Databases MCQs hub or test yourself in an NSCT mock test.