An autonomous agricultural drone records a list of 12 distinct sensor codes stored in an unsorted array. A monitoring program uses a linear search to look for a specific diagnostic code, ERR_404, which is not present in this array.
Describe the steps the linear search algorithm would take to confirm that the diagnostic code is absent from the array.
36 exam-style questions on OCR GCSE Computer Science Searching and sorting algorithms. Each one has a worked solution and a mark scheme showing where the marks go.