Bubble sort (Edexcel GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is the main purpose of bubble sort?
What is the main purpose of bubble sort?
To arrange data items in order
Why is the algorithm called 'bubble sort'?
Why is the algorithm called 'bubble sort'?
Smaller elements 'bubble' to the top
What does 'ascending order' mean?
What does 'ascending order' mean?
Arranging items smallest to largest
What does 'descending order' mean?
What does 'descending order' mean?
Arranging items largest to smallest
Which items does bubble sort compare?
Which items does bubble sort compare?
Adjacent items
What happens after each complete pass through the data?
What happens after each complete pass through the data?
At least one element is in correct position
How does bubble sort know it has finished sorting?
How does bubble sort know it has finished sorting?
A full pass with no swaps is made
What happens when two items are in the wrong order?
What happens when two items are in the wrong order?
They get swapped
Which element 'bubbles up' to its proper spot at the end?
Which element 'bubbles up' to its proper spot at the end?
The largest element
Why is bubble sort excellent for learning?
Why is bubble sort excellent for learning?
The logic is clear and easy to follow
What is a 'pass' in bubble sort?
What is a 'pass' in bubble sort?
Going through the list once comparing items
When does bubble sort work well?
When does bubble sort work well?
For small datasets
