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.
Stop searching when the target value is found.
Compare the first item in the list to the target value.
Move to the next item in the list.
Repeat until the target value is found or the list ends.
Think about how linear search examines each item one by one and stops when the target is found or the list ends.