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
Which of the following statements about a relation in first normal form is/are TRUE?
Consider the following two relations, and : …
The symbol indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?
Consider the following read-write schedule over three transactions , and , where the subscripts in the schedule indicate transaction IDs: Which of the following transaction schedules is/are conflict equivalent to …
Once the 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
In the context of owner and weak entity sets in the (Entity-Relationship) data model, which one of the following statements is TRUE?
Which of the following file organizations is/are efficient for the scan operation in ?
Which of the following statements about the Two Phase Locking () protocol is/are TRUE?
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 persons reside, using the above operators, the minimum number of cross product …
A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions: is not the empty set. is not the empty set. Intersection of and is the empty set. For a relation with attributes, the total number of …
Which one of the options given below refers to the degree (or arity) of a relation in relational database systems?
Consider the following table named in a relational database. The primary key of this table is …
Consider a database of fixed-length records, stored as an ordered file. The database has records, with each record being bytes, of which the primary key occupies 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 …
In a relational data model, which one of the following statements is
Consider the following three relations in a relational database. Which of the following relational algebra expressions return the set of who own all the brands?
Consider a relation with the following three functional dependencies. The number of superkeys in the relation is ______________ .
Let and denote read and write operations on a data element by a transaction respectively. Consider the schedule with four transactions. Which one of the following serial schedules is conflict …
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) …
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?
A relation in a relational database has tuples. The attribute has integer values ranging from to , and the attribute has integer values ranging from to . Assume that the attributes and are independently distributed. The estimated number of tuples in the output of …
