Question:

Which file organization is preferred for only insertion operations?

Show Hint

Heap File: \[ \text{Fast Insertion} \] Sorted File: \[ \text{Fast Searching} \]
Updated On: Jun 25, 2026
  • Sorted file
  • Hash file
  • Ordered file
  • Heap file
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

Concept: File organization determines how records are stored on secondary storage. Different organizations are suitable for different operations.

Step 1:
Understand Heap File Organization.
In a heap file, records are stored wherever free space is available. No sorting or ordering is maintained.

Step 2:
Analyze insertion efficiency.
Since no ordering is required, new records can simply be appended. Thus insertion is very fast.

Step 3:
Compare with sorted files.
Sorted or ordered files require repositioning records during insertion. This increases insertion cost.

Step 4:
Choose the answer.
Therefore, \[ \boxed{\text{Heap File}} \] is preferred when insertions dominate.
Was this answer helpful?
0
0