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 PYQ2024DatabasesNormal FormsMSQ · 1 mark
Which of the following statements about a relation R\mathbf{R} in first normal form (1NF)\text{(1NF)} is/are TRUE?
Official PYQ2024DatabasesRelational Model: Relational AlgebraNAT · 1 mark
Consider the following two relations, R(A,B)R(A, B) and S(A,C)S(A, C): …
Official PYQ2024DatabasesNormal FormsMSQ · 2 marks
​The symbol →\rightarrow indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?
Official PYQ2024DatabasesTransactions and Concurrency ControlMSQ · 2 marks
​​​​Consider the following read-write schedule S\text{S} over three transactions T1,T2T_{1}, T_{2}, and T3T_{3}, where the subscripts in the schedule indicate transaction IDs: S:r1(z);w1(z);r2(x);r3(y);w3(y);r2(y);w2(x);w2(y);S: r_{1}(z) ; w_{1}(z) ; r_{2}(x) ; r_{3}(y) ; w_{3}(y) ; r_{2}(y) ; w_{2}(x) ; w_{2}(y) ; Which of the following transaction schedules is/are conflict equivalent to …
Official PYQ2024DatabasesTransactions and Concurrency ControlMCQ · 1 mark
​​​​​Once the DBMS\text{DBMS} informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
Official PYQ2024DatabasesER-modelMCQ · 1 mark
In the context of owner and weak entity sets in the ER\text{ER} (Entity-Relationship) data model, which one of the following statements is TRUE?
Official PYQ2024DatabasesFile Organization and Indexing (B and B+ Trees)MSQ · 1 mark
​​​​​Which of the following file organizations is/are I/O\text{I/O} efficient for the scan operation in DBMS\text{DBMS}?
Official PYQ2024DatabasesTransactions and Concurrency ControlMSQ · 1 mark
​​​​Which of the following statements about the Two Phase Locking (2PL2 \mathrm{PL}) protocol is/are TRUE?
Official PYQ2024DatabasesRelational Model: Relational AlgebraMCQ · 2 marks
​​​​​The relation schema, Person (pid, city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are available: selection, projection, cross product, and rename. To find the list of cities where at least 33 persons reside, using the above operators, the minimum number of cross product …
Official PYQ2024DatabasesNormal FormsNAT · 2 marks
A functional dependency F:X→YF: X \rightarrow Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions: X\text{X} is not the empty set. Y\text{Y} is not the empty set. Intersection of X\text{X} and Y\text{Y} is the empty set. For a relation R\text{R} with 44 attributes, the total number of …
Official PYQ2023DatabasesRelational Model: Relational AlgebraMCQ · 1 mark
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
Official PYQ2023DatabasesTuple Calculus and SQLNAT · 2 marks
Consider the following table named Student\text{Student} in a relational database. The primary key of this table is rollNum.\text{rollNum}. Student\text{Student} …
Official PYQ2023DatabasesFile Organization and Indexing (B and B+ Trees)NAT · 2 marks
Consider a database of fixed-length records, stored as an ordered file. The database has 25,00025,000 records, with each record being 100100 bytes, of which the primary key occupies 1515 bytes. The data file is block-aligned in that each data record is fully contained within a block. The database is indexed by a primary index file, which is also stored as a …
Official PYQ2022DatabasesNormal FormsMCQ · 1 mark
In a relational data model, which one of the following statements is TRUE?\text{TRUE}?
Official PYQ2022DatabasesRelational Model: Relational AlgebraMSQ · 1 mark
Consider the following three relations in a relational database. Employee(eId‾,Name),  Brand(bId‾,bName),  Own(eId‾,bId‾)\text{Employee} (\underline{\text{eId}},\text{Name}), \; \text{Brand}(\underline{\text{bId}},\text{bName}), \; \text{Own}(\underline{\text{eId}},\underline{\text{bId}}) Which of the following relational algebra expressions return the set of elds\textit{elds} who own all the brands?
Official PYQ2022DatabasesNormal FormsNAT · 1 mark
Consider a relation R(A,B,C,D,E)R (A, B, C, D, E) with the following three functional dependencies. AB→C;  BC→D;  C→E;AB \rightarrow C; \; BC \rightarrow D; \; C \rightarrow E; The number of superkeys in the relation RR is ______________ .
Official PYQ2022DatabasesTransactions and Concurrency ControlMCQ · 2 marks
Let Ri(z)\textit{R}_{i}(z) and Wi(z)\textit{W}_{i}(z) denote read and write operations on a data element zz by a transaction Ti,\textit{T}_{i}, respectively. Consider the schedule S\textit{S} with four transactions. S:  R4(x)R2(x)R3(x)R1(y)W1(y)W2(x)W3(y)R4(y)S: \; R_{4}(x) R_{2}(x) R_{3}(x)R_{1}(y) W_{1}(y) W_{2}(x) W_{3}(y) R_{4}(y) Which one of the following serial schedules is conflict …
Official PYQ2022DatabasesTuple Calculus and SQLNAT · 2 marks
Consider the relational database with the following four schemas and their respective instances. Student(sNo, sName, dNo) Dept(dNo, dName) Course(cNo, cName, dNo) Register(sNo, cNo) …
Official PYQ2021DatabasesTransactions and Concurrency ControlMCQ · 1 mark
Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?
Official PYQ2021DatabasesTuple Calculus and SQLNAT · 1 mark
A relation r(A,B)r(A, B) in a relational database has 12001200 tuples. The attribute AA has integer values ranging from 66 to 2020, and the attribute BB has integer values ranging from 11 to 2020. Assume that the attributes AA and BB are independently distributed. The estimated number of tuples in the output of …