Databases questions

Q20

GATE CS 2024 CS-1Data ModelsMCQ1 mark−1/3 if wrong
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?
Show answer without attempting

Answer: D

Q21

GATE CS 2024 CS-1Storage and IndexingMCQ1 mark−1/3 if wrong
In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?
Show answer without attempting

Answer: A

Q22

GATE CS 2024 CS-1Relational DesignMSQ1 mark
Which of the following statements about a relation R in first normal form (1NF) is/are TRUE ?
More than one option can be correct.
Show answer without attempting

Answer: A, C

Q35

GATE CS 2024 CS-1Relational QueriesNAT1 mark
Consider the following two relations, R(A,B) and S(A,C):

The total number of tuples obtained by evaluating the following expression
σB<C(R⋈R.A=S.AS)\sigma_{B<C}(R \bowtie_{R.A=S.A} S)
is _________
Question figure
Question figure
Show answer without attempting

Answer: 2

Q44

GATE CS 2024 CS-1Relational DesignMSQ2 marks
The symbol →\to indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

Q46

GATE CS 2024 CS-1TransactionsMSQ2 marks
Consider the following read-write schedule SS 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 SS?
More than one option can be correct.
Show answer without attempting

Answer: B, C, D

Q19

GATE CS 2024 CS-2TransactionsMCQ1 mark−1/3 if wrong
Once the 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
Show answer without attempting

Answer: A

Q20

GATE CS 2024 CS-2Data ModelsMCQ1 mark−1/3 if wrong
In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?
Show answer without attempting

Answer: A

Q26

GATE CS 2024 CS-2Storage and IndexingMSQ1 mark
Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?
More than one option can be correct.
Show answer without attempting

Answer: A, B

Q27

GATE CS 2024 CS-2TransactionsMSQ1 mark
Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

Q45

GATE CS 2024 CS-2Relational QueriesMCQ2 marks−2/3 if wrong
The relation schema, Person(pid, city)\text{Person(pid, city)}, describes the city of residence for every person uniquely identified by pid\text{pid}. The following relational algebra operators are available: selection, projection, cross product, and rename.

To find the list of cities where at least 3 persons reside, using the above operators, the minimum number of cross product operations that must be used is
Show answer without attempting

Answer: B

Q53

GATE CS 2024 CS-2Storage and IndexingNAT2 marks
Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors.
A file has content stored in 3000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 2 decimal places) to read the entire file from the disk is _________
Show answer without attempting

Answer: 29.50 to 30.50

Q56

GATE CS 2024 CS-2Relational DesignNAT2 marks
A functional dependency F:X→YF: X \to Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions:
- XX is not the empty set.
- YY is not the empty set.
- Intersection of XX and YY is the empty set.

For a relation RR with 4 attributes, the total number of possible useful functional dependencies is ________
Show answer without attempting

Answer: 50

0/130 correct0 marks

Related topics in GATE CS