Quelpr

Other parts of this question

  1. 12(a)Identify the first number inserted into Q1.[1 mark]
  2. 12(c)Write an algorithm using only queue ADT operations to remove all elements from Q1 and insert them into an initially empty queue Q2.[5 marks]
  3. 12(d)Draw a diagram showing the elements of Q2 after three elements have been transferred from Q1 to Q2.[2 marks]

More practice: the rest of this paper · more Abstract Data Types (ADTs) questions · all CAPE Computer Science Unit 2 past papers