DBMS GATE CS and IT previous year questions with answer


Ques 1 Gate 2024 Set-1


Let S be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following ER diagrams CORRECTLY represents S?

A

(i)

B

(ii)

C

(iii)

D

(iv)



Ques 2 Gate 2023


Which one of the option given below refers to the degree of relation in relational database systems?

A

Number of distinct domains of its relation schema.

B

Number of attributes of its relation schema.

C

Number of entries in the relation.

D

Number of tuples stored in the relation.



Ques 3 Gate 2022


Let Ri(z) and Wi(z) denote read and write operations on a data element z by a transaction Ti, respectively. Consider the schedule S with four transactions.

S: R4(x)R2(x)R3(x)R1(y)W1(y)W2(x)W3(y)R4(y)

Which one of the following serial schedules is conflict equivalent to S?

A

T1→T3→T4→T2

B

T1→T4→T3→T2

C

T4→T1→T3→T2

D

T3→T1→T4→T2



Ques 4 Gate 2022


In a relational data model, which one of the following statements is TRUE?

A

A relation with only two attributes is always in BCNF.

B

If all attributes of a relation are prime attributes, then the relation is in BCNF.

C

Every relation has at least one non-prime attribute.

D

BCNF decompositions preserve functional dependencies.



Ques 5 Gate 2022


Consider the following three relations in a relational database. Employee (eId, Name ), Brand (bId, bName), Own (eId, bId ) Which of the following relational algebra expressions return the set of eIds who own all the brands?

A

πeldeld,bld(own)/πbrand))

B

πeld(own)-πeld((πeld(own)xπbld(brand))-πbld,eld(own))

C

πeldeld,bld(own)/πown))

D

πeld((πeld(own)xπbld(own))/πbld(brand))



Ques 6 Gate 2022


Consider two files systems A and B , that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in A and also in B. Now, consider inserting a new block in the middle of the file (between 50th and 51st block), whose data is already available in the memory. Assume that there are enough free blocks at the end of the file and that the file control blocks are already in memory. Let the number of disk accesses required to insert a block in the middle of the file in A and B are nA and nB respectively, then the value of nA + nB is_________.


153 is the correct answer.


Ques 7 Gate 2020


Consider a relational table R that is in 3NF, but not in BCNF. Which one of the following statements is TRUE ?

A

R has a nontrivial functional dependency X→A, where X is not a superkey and A is a prime attribute.

B

R has a nontrivial functional dependency X→A, where X is not a superkey and A is a non-prime attribute and X is not a proper subset of any key.

C

R has a nontrivial functional dependency X→A, where X is not a superkey and A is a non-prime attribute and X is a proper subset of some key.

D

A cell in R holds a set instead of an atomic value.



Ques 8 Gate 2020


Which one of the following is used to represent the supporting many-one relationships of a weak entity set in an entity-relationship diagram ?

A

Diamonds with double/bold border

B

Rectangles with double/bold border

C

Ovals with double/bold border

D

Ovals that contain underlined identifiers



Ques 9 Gate 2019


Consider the following two statements about database transaction schedules:

I. Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable.
II. Timestamp-ordering concurrency control protocol with Thomas’ Write Rule can generate view serializable schedules that are not conflict serializable.


Which of the above statements is/are TRUE?

A

I only

B

II only

C

Both I and II

D

Neither I nor II



Ques 10 Gate 2019


Let the set of functional dependencies F = {QR → S, R → P, S → Q} hold on a relation schema X = (PQRS). X is not in BCNF. Suppose X is decomposed into two schemas and Z where Y = (PR) and Z = (QRS).
Consider the two statements given below:

I. Both Y and Z are in BCNF
II. Decomposition of X into Y and Z is dependency preserving and a lossless.


Which of the above statements is/are correct?

A

Both I and II

B

Neither I nor II

C

I only

D

II only