Skip to content

Data Structures

What is the name for a structure that stores elements in contiguous memory locations, allowing constant-time indexed access?

Difficulty: Medium

About this MCQ

This Medium Data Structures MCQ checks one syllabus fact.

The question is: “What is the name for a structure that stores elements in contiguous memory locations, allowing constant-time indexed access?”

The accepted answer is A. Array (contiguous memory). Array (contiguous memory) is the fact required by “What is the name for a structure that stores elements in contiguous memory locations, allowing constant-time indexed access” (option A). Option B (“Queue”) does not match the stem; it is a near-miss used to catch incomplete recall of Array (contiguous memory). Option C (“Binary tree”) does not match the stem; it is a near-miss used to catch incomplete recall of Array (contiguous memory). Remaining alternatives (Trie) fall outside the same rule and should be eliminated once Array (contiguous memory) is identified. Data Structures questions of this type reward precise definitions rather than approximate associations. Data Structures recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Correct answer

A. Array (contiguous memory)

Explanation

Array (contiguous memory) is the fact required by “What is the name for a structure that stores elements in contiguous memory locations, allowing constant-time indexed access” (option A). Option B (“Queue”) does not match the stem; it is a near-miss used to catch incomplete recall of Array (contiguous memory). Option C (“Binary tree”) does not match the stem; it is a near-miss used to catch incomplete recall of Array (contiguous memory). Remaining alternatives (Trie) fall outside the same rule and should be eliminated once Array (contiguous memory) is identified. Data Structures questions of this type reward precise definitions rather than approximate associations. Data Structures recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Source: Data Structures Official Reference Guide

Tags: computer science, data structures, algorithms, programming

Submitted by: MCQsHub Editorial

Related MCQs

More Data Structures MCQs