πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      For data analysis tasks requiring efficient cache

      performance due to sequential data processing, which characteristic of arrays is most beneficial?
      A Dynamic resizing capability Correct Answer Incorrect Answer
      B Non-contiguous memory allocation Correct Answer Incorrect Answer
      C Contiguous memory allocation Correct Answer Incorrect Answer
      D Pointer-based element linking Correct Answer Incorrect Answer
      E O(1) insertion at the beginning Correct Answer Incorrect Answer

      Solution

      Arrays store elements in contiguous memory blocks, which leads to better cache locality. When data is accessed sequentially, the CPU can pre-fetch nearby elements into the cache, significantly improving performance.

      Practice Next
      ask-question