CAPE Computer Science Unit 2 · 2006 · Paper 2 · Question 3(a)(ii)
An array arr is filled to capacity with 100 integers.
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 found.
The mark scheme is shown once you've answered.
Practise this question