Linear search (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Linear search
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

11 questions from this quiz

Show

What type of algorithm is linear search?

Sequential

What is another name for linear search?

Brute force algorithm

What does 'brute force' mean in the context of linear search?

Relies on raw computing power

At which position does linear search begin?

Index 0 (first item)

When does a linear search stop?

Item found or end reached

What is the purpose of the Boolean flag 'found' in the code?

Tracks if target is discovered

What keeps the while loop running in linear search?

(not found) AND (index < length)

On what type of lists does linear search work?

Both sorted and unsorted

What is a disadvantage of linear search for large lists?

Can be very slow

What happens after each comparison in linear search?

Index increments by 1

How does linear search check items in a list?

One by one in order

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.