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
The following relation records the age of employees of a company, where (indicating the employee number) is the key: Consider the following relational algebra expression: What does the above expression generate?
Let and denote read and write operations respectively on a data item by a transaction . Consider the following two schedules. Which one of the following options is correct?
Consider the relation with the following functional dependencies. Consider the decomposition of the relation into the constituent relations according to the following two decomposition schemes. …
Consider the following statements and about the relational data model: : A relation scheme can have at most one foreign key. : A foreign key in a relation scheme cannot be used to refer to tuples of Which one of the following choices is correct?
A data file consisting of student-records is stored on a hard disk with block size of bytes. The data file is sorted on the primary key . The size of a record pointer for this disk is bytes. Each student-record has a candidate key attribute called of size bytes. Suppose an index file …
The relation scheme given below is used to store information about the employees of a company, where is the key and indicates the department to which the employee is assigned. Each employee is assigned to exactly one department. Consider the …
Let be the following schedule of operations of three transactions , and in a relational database system: Consider the statements and below: : is conflict-serializable. : If commits before finishes, then …
Suppose the following functional dependencies hold on a relation with attributes , and : Which of the following functional dependencies can be inferred from the above functional dependencies?
Consider a relational database containing the following schemas. …
Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram?
Consider a relational table that is in , but not in BCNF. Which one of the following statements is TRUE?
Consider a database implemented using tree for file indexing and installed on a disk drive with block size of . The size of search key is and the size of tree/disk pointer is . Assume that the database has one million records. Also assume that no node of the tree and no records are present …
Consider the following two statements about database transaction schedules: Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable. Timestamp-ordering concurrency control protocol with Thomas’ Write Rule can generate view serializable schedules that are not conflict serializable Which of the above statements …
Which one of the following statements is NOT correct about the tree data structure used for creating an index of a relational database table?
Let the set of functional dependencies hold on a relation schema . is not in BCNF. Suppose is decomposed into two schemas and , where and . Consider the two statements given below. Both and are in BCNF Decomposition of …
A relational database contains two tables Student and Performance as shown below: …
Consider the following relations and . …
Consider the following four relational schemas. For each schema , all non-trivial functional dependencies are listed, The bolded attributes are the respective primary keys. Registration(rollno, courses) Field ‘courses’ is a set-valued attribute containing the set of courses a student has registered for. Non-trivial functional dependency …
Consider the relations and , where is a primary key and is a foreign key referencing . Consider the query Let LOJ denote the natural left outer-join operation. Assume that and contain no null values. Which of the following is NOT equivalent to ?
In an Entity-Relationship (ER) model, suppose is a many-to-one relationship from entity set E1 to entity set E2. Assume that E1 and E2 participate totally in and that the cardinality of E1 is greater than the cardinality of E2. Which one of the following is true about ?
