Question 2(e)(ii) 2016 · May-June · Paper 33 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 2
Part (e)
(ii)
(ii)
MyStack.InitialiseStack
Max[3]
Show text version of question
Question 2
Part (e)
(ii)
It is suggested that the stack could be implemented using object-oriented programming.
(ii)
The main program uses a variable MyStack as an instance of StackClass.
Write pseudocode statements that would carry out the following sequence:
- initialise MyStack
- add (push) to the stack "JH45" followed by "HH90"
- remove an item (pop) from MyStack and assign the value to variable DeletedItem
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[3]
Question 8
Why this question appears here
98% assigned-topic match · Further programming › Programming paradigms
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_s16_qp_33.pdf
