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
Consider the following schedule for transactions and …
Which of the following concurrency control protocols ensure both conflict serializability and freedom from deadlock? -phase locking Time-stamp ordering
A relational schema for a train reservation database is given below. passenger(pid, pname, age) reservation(pid, class, tid) …
Consider a -tree in which the maximum number of keys in a node is . What is the minimum number of keys in any non-root node?
Consider the following relational schema: Assume that, in the suppliers relation above, …
Consider the following relational schema: Consider the following relational query on the …
Consider two transactions and , and four schedules , of and as given below: …
The following key values are inserted into a - tree in which order of the internal nodes is , and that of the leaf nodes is , in the sequence given below. The order of internal nodes is the maximum number of tree pointers in each node, and the order of leaf nodes is the maximum number of data items that can be stored in it. The - …
Let and be relational schemes such that and Now consider the following queries on the database: …
Consider the following diagram The minimum number of tables needed to represent , , , , is Which of the following is a correct attribute set for one of the tables for the minimum number of tables needed to represent , , , , ?
Consider the following relational schemes for a library database: Book (Title, Author, Catalog_no, Publisher, Year, Price) Collection(Title, Author, Catalog_no) with the following functional dependencies: …
Let R and S be two relations with the following schema where is the key for both schemas. Which of the following queries are equivalent? …
A B-tree of order is built from scratch by successive insertions. What is the maximum number of node splitting operations that may take place?
A clustering index is defined on the fields which are of type
Which of the following tuple relational calculus expression(s) is/are equivalent to ?
Consider the following diagram The minimum number of tables needed to represent , , , , is
Consider a file of records. Each record is long and its key field is of size . The file is ordered on a non-key field, and the file organization is unspanned. The file is stored in a file system with block size , and the size of a block pointer is . If the secondary …
Information about a collection of students is given by the relation . The relation gives which student has enrolled for (or taken) what course(s). Assume that every course is taken by at least one male and at least one female student. What …
Consider the following schedules involving two transactions. Which one of the following statements is TRUE?
The order of a leaf node in a - tree is the maximum number of (value, data record pointer) pairs it can hold. Given that the block size is , data record pointer is long, the value field is long and a block pointer is long, what is the order of the leaf node?
