A smartphone app breaks a journey into smaller steps to plan a route. What is this called?
England GCSE Computer Science AQA · Unit 1 · 10 questions
Fundamentals of Algorithms — Practice Test
This practice test was made by AI and there may be mistakes. If a question or answer looks wrong, use the Flag a mistake button to let Brett know so he can fix it.
A laptop uses an algorithm to add up the prices in a shopping list. What is an algorithm?
A merge sort splits a list of 8 items in half again and again until each list has one item. How many lists of one item are there?
A binary search checks a sorted list of 32 items. After one check, at most how many items can still need checking?
A program sets total to 0, then adds each number in the list 9, 1, 1, 1 in turn. What is the value of total at the end?
What is an advantage of a linear search?
A binary search checks a sorted list of 32 items. After two checks, at most how many items can still need checking?
A bubble sort makes its first pass over the list 1, 3, 2, 4, comparing each pair of neighbours and swapping them if they are in the wrong order. How many swaps are made in this pass?
In an insertion sort, where is each new item placed?
A program counts how many numbers in the list 4, 12, 2, 14, 68 are greater than 10. What is the count at the end?
Your score: 0 / 10