Exit Quiz
Question 1 of 6
1
of 6
Arrange the steps of a linear search in the correct order:
Click and drag answers to change the order, or select using
↹
Tab
then move by pressing
Space
and the
↑
↓
arrows on your keyboard.
Repeat until the target value is found or the list ends.
Stop searching when the target value is found.
Move to the next item in the list.
Compare the first item in the list to the target value.
Think about how linear search examines each item one by one and stops when the target is found or the list ends.
Need a hint?
Check