All mock tests are FREE till 31 December — register to save your progress
UGC NET · PAPER 2

UGC NET Paper 2 Computer Science – Unit 4: Database Management Systems PYQ (September 2022)

11 questions · answer key at the end · updated 11 Oct 2026

Directions (Q31–35): Consider the relational schema of Sailors S, Reserves R and Boats B.

Table 1: Sailors

SidSnameRatingAge
22Dustin745.0
29Brutus133.0
31Lubber855.5
32Andy825.5
58Rusty1035.5
64Horatio735.5
71Zorba1016.0
74Horatio935.0
85Art325.5
95Bob363.5

Table 2: Reserves

SidBidDay
2210110/10/98
2210210/10/98
2210310/8/98
2210410/7/98
3110211/10/98
3110311/6/98
3110411/12/98
641019/5/98
641029/8/98
741039/8/98

Table 3: Boats

BidBnameColor
101Interlakeblue
102Interlakered
103Clippergreen
104Marinered
Q31. Which relational algebra query computes the sids of sailors with age over 20 who have not reserved a red boat?
  1. πsid(σage>20 Sailors) − πsid((σcolor='red' Boats) ⋈ Reserves ⋈ Sailors)
  2. πsid(σcolor='red' ∧ age=20(Boats ⋈ Sailors ⋈ Reserves))
  3. πsid(σage<20 Sailors) − πsid((σcolor='red' Boats) ⋈ Reserves ⋈ Sailors)
  4. πsid(σage>20 Sailors) ∧ πsid((σcolor='red' Boats) ⋈ Reserves ⋈ Sailors)
Answer & explanation →
Q32. Which query/queries compute the names of sailors who have reserved a red boat?
Q1: πsname((σcolor='red' Boats) ⋈ Reserves ⋈ Sailors)
Q2: πsname(πsid((πbid σcolor='red' Boats) ⋈ Reserves) ⋈ Sailors)
Q3: πsname((σcolor='red' Reserves) ⋈ Boats ⋈ Sailors)
  1. Both Q1 and Q2
  2. Both Q2 and Q3
  3. Only Q1
  4. Only Q2
Answer & explanation →
Q33. Which query/queries compute the names of sailors who have reserved boat 103?
Q1: πsname((σbid=103 Boats) ⋈ Sailors)
Q2: πsname(σbid=103(Reserves ⋈ Sailors))
Q3: πsname((σbid=103 Reserves) ⋈ Sailors)
  1. Both Q1 and Q3
  2. Both Q2 and Q3
  3. Only Q3
  4. Only Q2
Answer & explanation →
Q34. Which query computes the names of sailors who have reserved all boats?
  1. ρ(Tempsids, (πbid Reserves) ÷ (πbid Boats)); πsname(Tempsids ⋈ Sailors)
  2. ρ(Tempsids, (πsid, bid Reserves) ÷ (πbid Boats)); πsname(Tempsids ⋈ Sailors)
  3. ρ(Tempsids, (πsid Sailors) ÷ (πbid Boats)); πsname(Tempsids ⋈ Sailors)
  4. ρ(Tempsids, (πsid Reserves) ÷ (πbid Boats)); πsname(Tempsids ⋈ Boats)
Answer & explanation →
Q35. Which query computes the names of sailors who have reserved a red and a green boat?
  1. ρ(Tempred, πsid((σcolor='red' Boats) ⋈ Reserves)); ρ(Tempgreen, πsid((σcolor='green' Boats) ⋈ Reserves)); πsname((Tempred ∩ Tempgreen) ⋈ Sailors)
  2. ρ(Tempboats2, (σcolor='red' Boats) ∩ (σcolor='green' Boats)); πsname(Tempboats2 ⋈ Reserves ⋈ Sailors)
  3. πsname(((σcolor='red' Boats) ∩ (σcolor='green' Boats)) ⋈ Reserves ⋈ Sailors)
  4. ρ(Tempboats2, σcolor='red' ∧ color='green' Boats); πsname(Tempboats2 ⋈ Reserves ⋈ Sailors)
Answer & explanation →
Q61. Let R(ABCDEFGH) be a relation schema and F = {A → B, ABCD → E, EF → G, EF → H, ACDF → EG} the set of dependencies. The minimal cover of F is
  1. A → B, ACD → E, EF → G, EF → H
  2. A → B, ACD → E, EF → G, EF → H, ACDF → G
  3. A → B, ACD → E, EF → G, EF → H, ACDF → E
  4. A → B, ABCD → E, EF → H, EF → G
Answer & explanation →
Q62. A trigger is
  1. a statement that enables the DBMS to start
  2. a statement that is executed by the user when debugging an application program
  3. a condition the system tests for the validity of the database user
  4. a statement that is executed automatically by the system as a side effect of a modification to the database
Answer & explanation →
Q75. In reference to Big Data, consider the following databases:
(A) Memcached
(B) CouchDB
(C) InfiniteGraph
Choose the most appropriate answer from the options given below:
  1. (A) and (B) only
  2. (B) and (C) only
  3. (C) and (A) only
  4. (A), (B) and (C)
Answer & explanation →
Q76. Match List I with List II.
Choose the correct answer from the options given below:
List IList II
A. BCNFI. It removes multivalued dependency.
B. 3NFII. It is not always dependency preserving.
C. 2NFIII. It removes transitive dependency.
D. 4NFIV. It removes partial functional dependency.
  1. A-III, B-II, C-IV, D-I
  2. A-II, B-IV, C-I, D-III
  3. A-II, B-III, C-IV, D-I
  4. A-II, B-I, C-IV, D-III
Answer & explanation →
Q88. Consider the following statements:
Statement I: Conservative 2PL is a deadlock-free protocol.
Statement II: Thomas's write rule enforces conflict serializability.
Statement III: The timestamp ordering protocol ensures serializability based on the order of transaction timestamps.
Which of the following is correct?
  1. Statements I and II true, Statement III false
  2. Statements I and III true, Statement II false
  3. Statements I and II false, Statement III true
  4. Statements I, II and III true
Answer & explanation →
Q89. Consider the following statements:
Statement I: Composite attributes cannot be divided into smaller subparts.
Statement II: A complex attribute is formed by nesting composite attributes and multivalued attributes in an arbitrary way.
Statement III: A derived attribute is an attribute whose values are computed from other attributes.
Which of the following is correct?
  1. Statements I, II and III are true
  2. Statement I true and Statements II, III false
  3. Statements I, II true and Statement III false
  4. Statement I false and Statements II, III true
Answer & explanation →

Answer key

  1. 31 – A
  2. 32 – A
  3. 33 – B
  4. 34 – B
  5. 35 – A
  6. 61 – A
  7. 62 – D
  8. 75 – D
  9. 76 – C
  10. 88 – B
  11. 89 – D