CAPE Computer Science Unit 2 · 2013 · Paper 2 · Question 3(c)
Given function prototype `int binarySearch(int items[], int numItems, int key)` which returns the index of key or -1 if not found.
Describe THREE tests that should be part of the test plan to unit test the binarySearch() function.
The mark scheme is shown once you've answered.
Practise this question