GATE 2004 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2004

199 questions

MCQ 1991-mark 199

Questions 156–160 of 199

Q156Normal Form1 markMCQ−0.33 if wrong
Consider the following entity relationship diagram (ERD), where two entities E1 and E2 have a relation R of cardinality 1:m.
E1 E2 R 1 m
The attributes of E1 are A11, A12 and A13 where A11 is the key attribute. The attributes of E2 are A21, A22 and A23 where A21 is the key attribute and A23 is a multi-valued attribute. Relation R does not have any attribute. A relational database containing minimum number of tables with each table satisfying the requirements of the third normal form (3NF) is designed from the above ERD. The number of tables in the database is

Q157Normal Form1 markMCQ−0.33 if wrong
The relation scheme Student Performance (name, courseNo, rollNo, grade) has the following functional dependencies:

name, courseNo, →\rightarrow grade
rollNo, courseNo →\rightarrow grade
name →\rightarrow rollNo
rollNo →\rightarrow name

The highest normal form of this relation scheme is

Q158File System1 markMCQ−0.33 if wrong
Consider a table T in a relational database with a key field K. A B-tree of order p is used as an access structure on K, where p denotes the maximum number of tree pointers in a B-tree index node. Assume that K is 10 bytes long; disk block size is 512 bytes; each data pointer PDP_D is 8 bytes long and each block pointer PBP_B is 5 bytes long. In order for each B-tree node to fit in a single disk block, the maximum value of p is

Q159File System1 markMCQ−0.33 if wrong
The order of an internal node in a B+ tree index is the maximum number of children it can have. Suppose that a child pointer takes 6 bytes, the search field value takes 14 bytes, and the block size is 512 bytes. What is the order of the internal node?

Q160Transaction1 markMCQ−0.33 if wrong
Consider the following schedule S of transactions T1 and T2:
T1T2Read(A)A = A - 10Read(A) Temp = 0.2*AWrite(A)Read(B)Write(A)Read(B)B = B + 10Write(B)B = B + TempWrite(B){\begin{array}{l|l} \textbf{T1}& \textbf{T2} \\\hline \text{Read(A)} \\ \text{A = A - 10}\\ & \text{Read(A) }\\ & \text{Temp = 0.2*A} \\ & \text{Write(A)} \\ & \text{Read(B)} \\ \text{Write(A)}\\ \text{Read(B)}\\ \text{B = B + 10}\\ \text{Write(B)} \\ & \text{B = B + Temp} \\ & \text{Write(B)}\\ \end{array}}
Which of the following is TRUE about the schedule S ?