Skip to content

GATE CS Databases questions

Practise Databases questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.

Separate schema constraints from assumptions in the question. For SQL, trace joins and grouping; for normalisation, work from the stated functional dependencies.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2026DatabasesNormal FormsMSQ · 1 mark
Let P,Q,RP, Q, R and SS be the attributes of a relation in a relational schema. Let X→YX \rightarrow 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?
Official PYQ2026DatabasesNormal FormsMSQ · 1 mark
In the context of relational database normalization, which of the following statements is/are true?
Official PYQ2026DatabasesTuple Calculus and SQLMCQ · 2 marks
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 \wedge\langle v, w\rangle \in S\} be a tuple relational calculus expression. Which one of the following relational algebraic expressions is equivalent to EE ?
Official PYQ2026DatabasesER-modelNAT · 2 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)
Official PYQ2026DatabasesER-modelMCQ · 1 mark
In the context of DBMS, consider the two sets T\mathbf{T} and S\mathbf{S} given below. …
Official PYQ2026DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Consider concurrent execution of two transactions T1T 1 and T2T 2 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?
Official PYQ2026DatabasesNormal FormsMCQ · 2 marks
In the context of schema normalization in relational DBMS, consider a set F\text{F} of functional dependencies. The set of all functional dependencies implied by F\text{F} is called the closure of F\text{F}. To compute the closure of F\text{F}, Armstrong's Axioms can be applied. Consider X,YX, Y, and ZZ as sets of attributes over a relational …
Official PYQ2026DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 2 marks
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\text{S1}: A hash index must be a dense index S1\text{S1}: A B+B^{+} tree index can be a sparse index Which one of the following options is correct?
Official PYQ2025DatabasesTransactions and Concurrency ControlMCQ · 1 mark
A schedule of three database transactions T1,T2T_{1}, T_{2}, and T3T_{3} is shown. Ri(A)R_{i}(A) and Wi(A)W_{i}(A) denote read and write of data item AA by transaction Ti,i=1,2,3T_{i}, i=1,2,3. The transaction T1T_{1} aborts at the end. Which other transaction(s) will be required to be rolled back? …
Official PYQ2025DatabasesFile Organization and Indexing (B and B+ Trees)MSQ · 1 mark
Consider the following B+B^{+}tree with 55 nodes, in which a node can store at most 33 key values The value 2323 is now inserted in the B+B^{+}tree. Which of the following options(s) is/are CORRECT?
Official PYQ2025DatabasesTuple Calculus and SQLMCQ · 2 marks
Consider two relations describing teams and players in a sports league: teams(tid, tname): tid, tname are team-id and team-name, respectively players(pid,pname,tid): pid, pname, and tid denote player-id, playername and the team-id of the player, respectively Which ONE of the following tuple relational calculus queries returns the name of the players who play …
Official PYQ2025DatabasesNormal FormsMSQ · 2 marks
Consider a relational schema team (name,city,owner)\text{(name,city,owner)}, with functional dependencies {name→city,name→owner}\{\text{name} \rightarrow \text{city}, \text{name} \rightarrow \text{owner} \}. The relation team is decomposed into two relations, t1(name,city)\text{t1(name,city)} and t2(name, owner)\text{t2(name, owner)}. Which of the following statement(s) is/are TRUE?
Official PYQ2025DatabasesTuple Calculus and SQLNAT · 2 marks
Consider the following database tables of a sports league. player (pid, pname, age) team(tid, tname, city, cid) coach (cid, cname) members (pid,tid) An instance of the table and an SQL query are given. …
Official PYQ2025DatabasesTransactions and Concurrency ControlMCQ · 2 marks
Consider the database transactions T1 and T2 , and data items X and Y . Which of the schedule(s) is/are conflict serializable? …
Official PYQ2025DatabasesTuple Calculus and SQLMSQ · 2 marks
Consider the following relational schema: Students (rollno: integer‾,\underline{\text{rollno: integer}}, name: string, age: integer, cgpa: real) Courses (courseno: integer‾,\underline{\text{courseno: integer}}, cname: string, credits: integer) Enrolled (rollno: integer‾,\underline{\text{rollno: integer}}, courseno: integer‾,\underline{\text{courseno: integer}}, grade: string) Which of the following options is/are …
Official PYQ2025DatabasesFile Organization and Indexing (B and B+ Trees)NAT · 2 marks
In a B+\mathrm{B}^{+}- tree where each node can hold at most four key values, a root to leaf path consists of the following nodes: A=(49,77,83,−),B=(7,19,33,44),C=(20∗,22∗,25∗,26∗)\mathrm{A}=(49,77,83,-), \mathrm{B}=(7,19,33,44), \mathrm{C}=\left(20^{*}, 22^{*}, 25^{*}, 26^{*}\right) The ∗*-marked keys signify that these are data entries in a leaf. Assume that a pointer between keys k1k_{1} and …
Official PYQ2025DatabasesTransactions and Concurrency ControlMSQ · 1 mark
​​​​An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account AA attempted simultaneous transfers of Rs. 1000010000 each from account AA to account BB. Both transactions read the same value, Rs.1100011000, as the initial balance in AA and were allowed to go through. BB was credited Rs.1000010000 …
Official PYQ2025DatabasesNormal FormsMSQ · 2 marks
​​​​Consider the following relational schema along with all the functional dependencies that hold on them. R1(A,B,C,D,E):{D→E,EA→B,EB→C}R2(A,B,C,D):{A→D,A→B,C→A}\begin{array}{l} R 1(A, B, C, D, E):\{D \rightarrow E, E A \rightarrow B, E B \rightarrow C\} \\ R 2(A, B, C, D):\{A \rightarrow D, A \rightarrow B, C \rightarrow A\} \end{array} Which of the following statement(s) is/are TRUE?
Official PYQ2024DatabasesER-modelMCQ · 1 mark
Let S\mathrm{S} be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following ER\mathrm{ER} diagrams CORRECTLY represents S\mathrm{S}?
Official PYQ2024DatabasesFile Organization and Indexing (B and B+ Trees)MCQ · 1 mark
In a B+\mathrm{B}^+ tree, the requirement of at least half-full (50%)(50 \%) node occupancy is relaxed for which one of the following cases?