Practice free →
HomeAP Computer Science PrinciplesComputer ScienceComputing Foundations › An algorithm locates a number quickly inside a s…

An algorithm locates a number quickly inside a sorted array of integers. That algorithm is:

ABinary search
BLinear guessing
CBubble sorting
DRandom walking
Answer & Solution
Correct answer: A. Binary search
1. The array is already sorted. 2. The search narrows quickly. 3. It is binary search. _Source: OpenStax Introduction to Computer Science, Chapter 1, Introduction to Computer Science._
Solve this in the app — AP Computer Science Principles practice & 24k+ MCQs →
Related questions