Skip to content

UGC NET CS 2023Database Management Systems › Data ModelingVerified

UGC NET CS 2023 PYQ: The total cost of retrieving records in sorted order using an unclustered $\mathrm{B}+$ tree is (P-Average…

The total cost of retrieving records in sorted order using an unclustered $\mathrm{B}+$ tree is (P-Average number of records per data page

N- Data pages

F- Ratio of the size of a data entry to the size of a data record)

  1. A
    $\left(\mathrm{F}^{*} \mathrm{~N}\right)+\mathrm{P}$
  2. B
    $(\mathrm{F}+\mathrm{P}) * \mathrm{~N}$
    Correct answer
  3. C
    $\mathrm{F}^{*} \mathrm{~N}^{*} \mathrm{P}$
  4. D
    $\mathrm{F}+\mathrm{P} / \mathrm{N}$

Answer

(B) $(\mathrm{F}+\mathrm{P}) * \mathrm{~N}$

Approach

Compute the cost as the sum of scanning all B+ tree leaf pages plus one random data-page I/O per record, using the given parameters.

Reviewed by UGC IQ Editorial Team.