Which of the following highly uses the concept of an array?

Options

  • A. Binary search tree
  • B. Scheduling of processes
  • C. Spatial locality
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. Spatial locality

Detailed Explanation

Correct Answer: C. Spatial locality

Explanation: Arrays store elements in contiguous memory locations. Accessing nearby elements improves spatial locality.

  • Spatial locality: If one memory location is accessed, nearby locations are likely to be accessed soon.
  • Array elements are stored consecutively in memory.
  • This helps improve CPU cache performance.