GateAI
File Organization and Indexing

GATE CSE 2017 Set 2 · Q49

NAT2 marksMedium

Time

In a B+ tree, if the search-key value is 8 bytes long, the block size is 512 bytes and the block pointer size is 2 bytes, then the maximum order of the B+ tree is ________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 52 (±0)

File Organization and Indexing

The order pp of a B+ tree is defined as the maximum number of child (block) pointers an internal node can hold.

An internal node of order pp contains at most pp block pointers and (p−1)(p - 1) search keys. Therefore, the node size constraint is:

p×(block pointer size)+(p−1)×(search-key size)≤block sizep \times (\text{block pointer size}) + (p - 1) \times (\text{search-key size}) \le \text{block size}

Given:

  • Block pointer size =2= 2 bytes

  • Search-key size =8= 8 bytes

  • Block size =512= 512 bytes

Substitute the given values:

p(2)+(p−1)(8)≤512p(2) + (p - 1)(8) \le 512
2p+8p−8≤5122p + 8p - 8 \le 512
10p−8≤51210p - 8 \le 512
10p≤52010p \le 520
p≤52p \le 52

Thus, the maximum order of the B+ tree is 52.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This File Organization and Indexing previous year question is Q49 of the GATE CSE 2017 Set 2 paper. Find more GATE CSE PYQs on File Organization and Indexing in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related File Organization and Indexing PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

File Organization and Indexing in GATE CSE

File Organization and Indexing has 17 GATE CSE PYQs across 17 papers from 2011 to 2026. 5 of them are 2-mark NAT questions like this one, and it is the only one in GATE CSE 2017 Set 2.

How GATE tests File Organization and Indexing

More from GATE CSE 2017 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2017 Set 2 · Q49 · NAT

In a B+ tree, if the search-key value is 8 bytes long, the block size is 512 bytes and the block pointer size is 2 bytes, then the maximum order of the B+ tree is …

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.