Ages 14–16 · O Level · Foundation
Stack trace
Apply data structures to justify a solution to the stack trace task.
Understand the idea
Structures support different ordering and access requirements.
Your challenge
Push A; push B; pop; push C; pop. Which value is popped last?
- C
- B
- A
How to explore
- Identify the inputs, goal or constraint in this data structures situation.
- Work through the stated rule or operation without adding assumptions.
- Check your proposed response against every relevant detail in the question.
Open the activity to work with its controls and check your reasoning. Progress stays in this browser.
Keep exploring
DON’T LET THE QUESTION END HEREGive that curiosity
Open the learning space