Databases questions

Q30

GATE CS 2026 CS-1Relational DesignMSQ1 mark
Let P,Q,RP, Q, R and SS be the attributes of a relation in a relational schema. Let X⟶YX \longrightarrow Y indicate functional dependency in the context of a relational database, where X,Y⊆{P,Q,R,S}X, Y \subseteq \{P, Q, R, S\}.

Which of the following options is/are always true?
More than one option can be correct.
Show answer without attempting

Answer: C, D

Q31

GATE CS 2026 CS-1Relational DesignMSQ1 mark
In the context of relational database normalization, which of the following statements is/are true?
More than one option can be correct.
Show answer without attempting

Answer: A, B, C

Q43

GATE CS 2026 CS-1Relational QueriesMCQ2 marks−2/3 if wrong
Consider a relational database schema with two relations R(P,Q)R(P, Q) and S(X,Y)S(X, Y).

Let E={⟨u⟩∣∃v∃w⟨u,v⟩∈R∧⟨v,w⟩∈S}E = \{\langle u \rangle \mid \exists v \exists w \langle u, v \rangle \in R \land \langle v, w \rangle \in S\} be a tuple relational calculus expression.

Which one of the following relational algebraic expressions is equivalent to EE?
Show answer without attempting

Answer: B

Q65

GATE CS 2026 CS-1Relational DesignNAT2 marks
Consider a relational database schema with a relation R(A,B,C,D)R(A, B, C, D). If {A,B}\{A, B\} and {A,C}\{A, C\} are the only two candidate keys of the relation RR, then the number of superkeys of relation RR is ______. (answer in integer)
Show answer without attempting

Answer: 6

Q15

GATE CS 2026 CS-2Data ModelsMCQ1 mark−1/3 if wrong
In the context of DBMS, consider the two sets T and S given below.

| T | S |
|---|---|
| I: Logical schema | L: Views |
| II: Physical schema | M: File organization and indexes |
| III: External schema | N: Relations |

Which one of the following is the correct match from T to S ?
Show answer without attempting

Answer: C

Q20

GATE CS 2026 CS-2TransactionsMCQ1 mark−1/3 if wrong
Consider concurrent execution of two transactions T1T1 and T2T2 in a DBMS, both of which access a data object AA. For these two transactions to not conflict on AA, which one of the following statements must be true?
Show answer without attempting

Answer: A

Q42

GATE CS 2026 CS-2Relational DesignMCQ2 marks−2/3 if wrong
In the context of schema normalization in relational DBMS, consider a set F of functional dependencies. The set of all functional dependencies implied by F is called the closure of F. To compute the closure of F, Armstrong’s Axioms can be applied. Consider XX, YY, and ZZ as sets of attributes over a relational schema. The three rules of Armstrong’s Axioms are described as follows.

Reflexivity: If Y⊆XY \subseteq X, then X→YX \rightarrow Y

Augmentation: If X→YX \rightarrow Y, then XZ→YZXZ \rightarrow YZ for any Z

Transitivity: If X→YX \rightarrow Y and Y→ZY \rightarrow Z, then X→ZX \rightarrow Z

The additional rule of Union is defined as follows.

Union: If X→YX \rightarrow Y and X→ZX \rightarrow Z, then X→YZX \rightarrow YZ

It can be proved that the additional rule of Union is also implied by the three rules of Armstrong’s Axioms. Listed below are four combinations of these three rules. Which one of these combinations is both necessary and sufficient for the proof ?
Show answer without attempting

Answer: D

Q46

GATE CS 2026 CS-2Storage and IndexingMCQ2 marks−2/3 if wrong
An index in a DBMS is said to be dense if an index entry appears for every search-key value in the indexed file. Otherwise it is called a sparse index. Consider the following two statements.

S1: A hash index must be a dense index

S2: A B+B^+ tree index can be a sparse index

Which one of the following options is correct?
Show answer without attempting

Answer: A

0/80 correct0 marks

Related topics in GATE CS