Quelpr

Other parts of this question

  1. 3(a)(i)Write a recursive function in pseudocode to search arr for a value named key. Return the index where it was found, or return -1 if key is not present.[11 marks]
  2. 3(a)(ii)Write a segment of code that prompts the user for key, calls the search function in 3(a)(i), and displays an error message if not found or the location if…[5 marks]
  3. 3(b)Identify and describe FOUR steps (or stages) of the object-oriented process.[8 marks]

More practice: the rest of this paper · more Software Engineering Principles and Models questions · all CAPE Computer Science Unit 2 past papers