15 questions · 22 marks · 40 minutes. Negative marking on MCQ only: −1/3 mark for a wrong 1-mark MCQ, −2/3 for a wrong 2-mark MCQ. No negative marking for MSQ or NAT; MSQ has no partial credit.
Q1 · MCQ · 1 mark(s) — Notation
Which ER symbol represents a multivalued attribute?
- (A) Dashed ellipse
- (B) Double ellipse
- (C) Underlined attribute
- (D) Double rectangle
Q2 · MCQ · 1 mark(s) — Attributes
A composite attribute is one that:
- (A) is computed from other attributes
- (B) is unique for every entity
- (C) has several values per entity
- (D) can be divided into meaningful parts
Q3 · MCQ · 1 mark(s) — Keys
Train coaches are numbered C1, C2, … in every train, and each train has a unique train_no. The key of COACH is:
- (A) train_no
- (B) (train_no, coach_no)
- (C) there is none
- (D) coach_no
Q4 · NAT · 1 mark(s) — Counting
STUDENT has 12 entities, COURSE has 9. What is the maximum size of the ENROLLS relationship set (M:N)?
Numerical answer: ________
Q5 · MCQ · 1 mark(s) — Degree
"A supplier supplies a part to a project" as one relationship has degree:
- (A) 3
- (B) 1
- (C) 2
- (D) 4
Q6 · MCQ · 2 mark(s) — Ratio
Each citizen has at most one passport and each passport belongs to exactly one citizen. HOLDS(CITIZEN, PASSPORT) is:
- (A) M:N
- (B) 1:1 with CITIZEN partial and PASSPORT total
- (C) 1:N with CITIZEN total
- (D) 1:1 with both total
Q7 · NAT · 2 mark(s) — Counting
FACULTY has 25 entities, DEPARTMENT has 5. HEADS(FACULTY, DEPARTMENT) is 1:1 and DEPARTMENT participates totally. How many faculty members head no department?
Numerical answer: ________
Q8 · MCQ · 2 mark(s) — (min,max)
WORKS_ON(EMPLOYEE, PROJECT) shows EMPLOYEE (1, 4) and PROJECT (2, N). Which is correct?
- (A) Each project has at least 2 employees; each employee works on 1 to 4 projects.
- (B) Some employees work on no project.
- (C) Each project has at most 4 employees.
- (D) Each employee works on 2 or more projects.
Q9 · MSQ · 2 mark(s) — Constraints
Which statements are always true?
- (A) Total participation means the minimum is at least 1.
- (B) A relationship set never contains the same combination of entities twice.
- (C) Cardinality ratio limits the maximum number of relationships per entity.
- (D) A 1:1 relationship must have total participation on both sides.
Q10 · MCQ · 1 mark(s) — Weak entity
Which must hold for every weak entity type?
- (A) Its partial key is unique across all its entities.
- (B) Its owner participates totally in the identifying relationship.
- (C) It has a key attribute of its own.
- (D) It participates totally in the identifying relationship.
Q11 · MCQ · 1 mark(s) — Notation
A dashed underline on an attribute name marks:
- (A) a partial key
- (B) a multivalued attribute
- (C) a foreign key
- (D) a derived attribute
Q12 · MCQ · 2 mark(s) — EER
ACCOUNT is specialised into SAVINGS and CURRENT. Every account is exactly one of the two. The constraints are:
- (A) overlapping, partial
- (B) overlapping, total
- (C) disjoint, total
- (D) disjoint, partial
Q13 · MCQ · 1 mark(s) — EER
A subclass entity has:
- (A) all superclass attributes and relationships plus local ones
- (B) a different key from its superclass entity
- (C) only local attributes
- (D) no relationships of its own
Q14 · MCQ · 2 mark(s) — Modelling
"Each patient is assigned at most one bed; a bed may be unoccupied; no bed holds two patients." ASSIGNED(PATIENT, BED) is:
- (A) 1:1, both partial
- (B) 1:1, PATIENT total
- (C) 1:N from BED to PATIENT
- (D) M:N
Q15 · MSQ · 2 mark(s) — Modelling
"Each invoice has line items numbered within it; each line item names one product; a product appears on many line items." Which are correct?
- (A) PRODUCT must participate totally.
- (B) LINE_ITEM's key is (invoice_no, line_no).
- (C) The relationship between LINE_ITEM and PRODUCT is N:1.
- (D) LINE_ITEM is a weak entity with owner INVOICE.
✓Answer Vault
Reveal answers when you’re ready
Q1 Answer: (B) · 1 mark(s)
Double ellipse.
- (A) is wrong: Derived.
- (C) is wrong: Key.
- (D) is wrong: Weak entity.
Re-read: Lesson 1.1.2 — Attribute types: simple/composite, single/multivalued, stored/derived, NULL-able, key attribute
Q2 Answer: (D) · 1 mark(s)
Parts, such as first and last name.
- (A) is wrong: Derived.
- (B) is wrong: Key.
- (C) is wrong: Multivalued.
Re-read: Lesson 1.1.2 — Attribute types: simple/composite, single/multivalued, stored/derived, NULL-able, key attribute
Q3 Answer: (B) · 1 mark(s)
Composite key; COACH can be modelled as weak with owner TRAIN.
- (A) is wrong: Repeats across coaches.
- (C) is wrong: The pair identifies it.
- (D) is wrong: Repeats across trains.
Re-read: Lesson 1.1.2 — Attribute types: simple/composite, single/multivalued, stored/derived, NULL-able, key attribute
Q4 Answer: 108 · 1 mark(s)
12 × 9 = 108.
Re-read: Lesson 1.2.1 — Relationship, relationship set, degree, roles, relationship attributes
Q5 Answer: (A) · 1 mark(s)
SUPPLIER, PART, PROJECT.
- (B) is wrong: No.
- (C) is wrong: No.
- (D) is wrong: No.
Re-read: Lesson 1.2.1 — Relationship, relationship set, degree, roles, relationship attributes
Q6 Answer: (B) · 2 mark(s)
Max 1 both ways; every passport has a citizen; a citizen may have none.
- (A) is wrong: No.
- (C) is wrong: At most one passport per citizen.
- (D) is wrong: A citizen may have no passport.
Re-read: Lesson 1.2.2 — Cardinality ratios; total vs partial participation; (min,max) notation
Q7 Answer: 20 · 2 mark(s)
Exactly 5 heads; 25 − 5 = 20.
Re-read: Lesson 1.2.2 — Cardinality ratios; total vs partial participation; (min,max) notation
Q8 Answer: (A) · 2 mark(s)
Each pair describes its own entity.
- (B) is wrong: EMPLOYEE's min is 1.
- (C) is wrong: Reads EMPLOYEE's pair as PROJECT's.
- (D) is wrong: Reads PROJECT's pair as EMPLOYEE's.
Re-read: Lesson 1.2.2 — Cardinality ratios; total vs partial participation; (min,max) notation
Q9 Answer: (A) (B) (C) · 2 mark(s)
Participation and ratio are independent; a relationship set is a set.
- (D) is wrong: 1:1 can be partial on either side.
Re-read: Lesson 1.2.2 — Cardinality ratios; total vs partial participation; (min,max) notation
Q10 Answer: (D) · 1 mark(s)
Weak entities cannot exist without owners.
- (A) is wrong: Only unique per owner.
- (B) is wrong: The owner may have no weak entities.
- (C) is wrong: It has none.
Re-read: Lesson 1.2.3 — Weak entity sets, identifying relationship, partial key
Q11 Answer: (A) · 1 mark(s)
Partial key of a weak entity.
- (B) is wrong: Double ellipse.
- (C) is wrong: Not an ER symbol.
- (D) is wrong: Dashed ellipse.
Re-read: Lesson 1.2.3 — Weak entity sets, identifying relationship, partial key
Q12 Answer: (C) · 2 mark(s)
Exactly one → disjoint and total.
- (A) is wrong: Both wrong.
- (B) is wrong: Overlapping allows both.
- (D) is wrong: Every account is in one.
Re-read: Lesson 1.2.4 — Extended ER: specialization, generalization, aggregation
Q13 Answer: (A) · 1 mark(s)
Inheritance.
- (B) is wrong: It is the same entity; same key.
- (C) is wrong: It inherits.
- (D) is wrong: It may have local relationships.
Re-read: Lesson 1.2.4 — Extended ER: specialization, generalization, aggregation
Q14 Answer: (A) · 2 mark(s)
At most one each way; "at most" and "may be unoccupied" make both partial.
- (B) is wrong: "At most one" allows none.
- (C) is wrong: No bed holds two.
- (D) is wrong: No.
Re-read: Lesson 1.3.1 — Modeling practice: English requirements to ER diagram
Q15 Answer: (B) (C) (D) · 2 mark(s)
"Numbered within" → weak; each item has one product, a product has many items. Nothing forces every product to appear.
- (A) is wrong: A product may appear on no invoice.
Re-read: Lesson 1.3.1 — Modeling practice: English requirements to ER diagram