GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 15

Universal relational-calculus condition

Database Management Systems · Relational Algebra & Calculus · Full GATE CSE 2008 paper

GATE 2008, Q15 1 mark · MCQ
Report issue

Relational Algebra & Calculus

Question 15, GATE 2008: Which tuple-calculus expressions equal ∀t∈r P(t)? I: ¬∃t∈r P(t). II: ∃t∉r P(t). III: ¬∃t∈r ¬P(t). IV: ∃t∉r ¬P(t).

(A) I only
(B) II only
(C) III only
(D) III and IV only
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. A universal statement fails exactly when there is a counterexample. Here a counterexample is a tuple t in r for which P(t) is false.
2. Excluding every such counterexample gives ¬∃t∈r ¬P(t), which is III.
3. I instead says no tuple satisfies P; II and IV discuss tuples outside r. Therefore III only, C.

Original paper, page 4