Gate CS-2011 Question Paper With Solutions

Q. 39 Consider a relational table r with sufficient number of records, having attributes A1, A2,…, An and let 1 <= p <= n. Two queries Q1 and Q2 are given below.

Gate CS-2011 Question Paper With Solutions

The database can be configured to do ordered indexing on AP or hashing on AP.

Which of the following statements is TRUE?

(A) Ordered indexing will always outperform hashing for both queries

(B) Hashing will always outperform ordered indexing for both queries

(C) Hashing will outperform ordered indexing on Q1, but not on Q2

(D) Hashing will outperform ordered indexing on Q2, but not on Q1

Answer: (C)

Explanation:

Gate CS-2011 Question Paper With Solutions

Learn More:   Gate EE-2014-2 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here