GATE 2001 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2001

60 questions

MCQ 601-mark 60

Questions 56–60 of 60

Q56Relational Algebra1 markMCQ−0.33 if wrong
Let r and s be two relations over the relation schemes R and S respectively, and let A be an attribute in R. Then the relational algebra expression σA=a(r⋈s)\sigma _{A=a}(r\Join s) is always equal to :

Q57Relational Algebra1 markMCQ−0.33 if wrong
Suppose the adjacency relation of vertices in a graph is represented in a table Adj(X,Y). Which of the following queries cannot be expressed by a relational algebra expression of constant length ?

Q58Tuple Calculus1 markMCQ−0.33 if wrong
Which of the following relational calculus expressions is not safe ?
(a)    {t∣∃u∈R1 (t[A]=u[A])∧¬∃s∈R2 (t[A]=s[A])}\text{(a)}\;\; \{t \mid \exists u \in R_1\,(t[A] = u[A]) \wedge \neg \exists s \in R_2\,(t[A] = s[A])\}
(b)    {t∣∀u∈R1 (u[A]="x"⇒∃s∈R2 (t[A]=s[A]∧s[A]=u[A]))}\text{(b)}\;\; \{t \mid \forall u \in R_1\,(u[A] = \text{"}x\text{"} \Rightarrow \exists s \in R_2\,(t[A] = s[A] \wedge s[A] = u[A]))\}
(c)    {t∣¬(t∈R1)}\text{(c)}\;\; \{t \mid \neg (t \in R_1)\}
(d)    {t∣∃u∈R1 (t[A]=u[A])∧∃s∈R2 (t[A]=s[A])}\text{(d)}\;\; \{t \mid \exists u \in R_1\,(t[A] = u[A]) \wedge \exists s \in R_2\,(t[A] = s[A])\}

Q59SQL1 markMCQ−0.33 if wrong
Consider a relation geq which represents "greater than or equal to", that is, (x,y) ∈\in geq only if y≥\geqx:
 create table geq
( 
  ib integer not null
  ub integer not null
  primary key ib
  foreign key (ub) references geq on delete cascade 
) 
Which of the following is possible if a tuple (x,y) is deleted ?

Q60Normal Form1 markMCQ−0.33 if wrong
R,(A,B,C,D) is a relation. Which of the following does not have a lossless join, dependency preserving BCNF decomposition ?