Computing 9691 · 20
Further programming
2 questions. Open a question to solve it and check the official answer.
2016 May-June · Paper 33 · Q2(e)(i)
Programming paradigms · 4 marks · official answer ready
(i) Complete the pseudocode. CLASS StackClass PRIVATE TOS : INTEGER Stack : ARRAY[1 : 20] OF STRING PUBLIC PROCEDURE InitialiseStack ENDPROCEDURE PROCEDURE Push(NewItem : STRING) …
2016 May-June · Paper 33 · Q2(e)(ii)
Programming paradigms · 3 marks · official answer ready
(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 (pu…
