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
Answer and explanation
Concise answer
An array and a pointer for the top of the stack
Why this is correct
The stated example is a stack implemented using an array and a pointer for the top of the stack.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
