NPTEL Introduction to Database Systems Week 10 Assignment Answers 2025

NPTEL Introduction to Database Systems Week 10 Assignment Answers 2025

1. Consider a B+ tree in which the maximum number of keys in an internal node is 5. What is the minimum number of keys in any non-root internal node?

  • 1
  • 2
  • 3
  • 4
Answer :- For Answers Click Here 

2.

For the B+ tree given above, the minimum number of ​ nodes of the tree (including the root ​ node ​ ) that must be fetched in order to obtain result of the following query: “Get all records with a search key greater than or equal to 14 and less than or equal to 20” is

  • 4
  • 5
  • 6
  • 7
Answer :- 

3. Consider the B+ tree given in Question 2 with order = 3 and orderleaf = 2. If we insert the element 15, the number of internal nodes and leaf nodes in the resulting tree, respectively, are

  • 4, 6
  • 4, 7
  • 5, 6
  • 5, 7
Answer :- 

4. The details of a RAID-4 (Block-level striping; dedicated parity disk) storage system are as follows: Number of data disks = 6; Number of parity disks = 1. Assume that the disks have a lot of empty space. Suppose, RAID-5 (Block-level striping; distributed parity;) is used, instead of RAID-4, to implement the above storage system, the number of disks on which data is stored is

  • 7
  • 8
  • 13
  • 14
Answer :- 

5. To store huge data, the implementation of which of the following RAID level requires the largest number of disks

  • RAID-6 (Block-level striping; double distributed parity;)
  • RAID-4 (Block-level striping; dedicated parity disk)
  • RAID-2 (Bit-level striping; Redundancy using Hamming codes)
  • RAID-1 (Mirrored disks; No parity; No data striping)
Answer :- For Answers Click Here 

6. The number of block accesses during sort phase is

  • 18
  • 228
  • 2048
  • 4096
Answer :- 

7. The number of block accesses during merge phase is

  • 228
  • 8192
  • 12288
  • 16384
Answer :- 

8. The following relation is used to store the details of the students studying in an engineering college: Student(rollNo, name, sex).
Consider the following predicates.

P1: rollNo= ‘CS17B038’
P2: name= ‘Suresh’ (Assume that there are at least two people in the college with name ‘Suresh’)
P3: sex = ‘Male’

Let c1, c2 and c3 denote the selectivity of P1, P2 and P3, respectively. Under normal conditions, the relation among c1, c2 and c3 is

  • c1 < c2 < c3
  • c1 < c2 > c3
  • c1 < c2 = c3
  • c3 < c2 < c1
Answer :- 

9. Consider two data files R and S with ​ b1 and ​ b2 blocks stored on two disks with half blocks on each disk to support parallel access. To perform Nested loop join on the two files using the algorithm given below, ​ m memory buffers are available (assume that ​ m is an odd number). Two buffers are used for the inner file (one block from each disk), one for the result and the rest of the buffers are equally divided for the outer file from both the disks. Let the time taken to access a block be ​ t ​ .
for each record x,y in R do // x is from disk 1 and y is from disk 2
for each record u,v in S do // u is from disk 1 and v is from disk 2
check if x, u join .. .
check if x, v join .. .
check if y, u join .. .
check if y, v join .. .

   The number of times all the blocks of the inner file are accessed is
  • ceil( b1 / (m – 3) )
  • ceil( b1 / (2 * (m – 3)) )
  • ceil( b1 / (4 * (m – 3)) )
  • ceil( b1 / (2 * (m – 2)) )
Answer :- 

10. Using the information in Question 9, the total amount of time taken for the nested loop join operation, excluding the time taken to write the result, is

  • ( (b1 / 2) + ceil( b1 / (m-3) ) * (b2 / 2) ) * t
  • ( (b1 / 2) + ceil( b1 / (2 * (m-3)) ) * (b2 / 2) ) * t
  • ( (b1) + ceil( b1 / (m-3) ) * b2 ) * t
  • ( (b1 / 2) + ceil( b1 / (m-3) ) * b2 ) * t
Answer :- For Answers Click Here 
Scroll to Top