logo

Question detail

In the specification example, which pair could be used to implement a stack?

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

At a glance

MCQ

Type

practice

Style

Topic

Abstraction and automation

Exam-style question

Try this first

In the specification example, which pair could be used to implement a stack?.

  1. A.An array and a pointer for the top of the stack
  2. B.A single character and a Boolean value
  3. C.A file and a pointer to the first program instruction
  4. D.A loop and a conditional statement

Model answer

What a good answer should say

  • An array and a pointer for the top of the stack

Explanation

Why this works

The stated example is a stack implemented using an array and a pointer for the top of the stack.

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.