logo

Question detail

Which scenario most clearly requires a data structure to represent several related values?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Data structures and abstract data types

Exam-style question

Try this first

Which scenario most clearly requires a data structure to represent several related values?.

  1. A.Recording the temperatures for seven days
  2. B.Testing whether one switch is on
  3. C.Displaying one fixed heading
  4. D.Storing one person's age

Model answer

What a good answer should say

  • Recording the temperatures for seven days

Explanation

Why this works

The temperatures for seven days form a collection of related values, so organising them in a data structure would be useful. The other scenarios each describe a single value.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.