Exam-style question
Try this first
In the specification example, which pair could be used to implement a stack?.
- A.An array and a pointer for the top of the stack
- B.A single character and a Boolean value
- C.A file and a pointer to the first program instruction
- 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.
