Searching: AP CSP practice
Linear and binary search. 3 questions in the style of the AP CSP exam.
Sample questions
Which condition must be true before a binary search can be used on a list?
- The list must be sorted
- The list must have an even number of elements
- The list must contain no duplicates
- The list must contain only numbers