View as PDF

England GCSE Computer Science AQA · Unit 1 · 25 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.

1

A games console repeats a level until the player wins. Which loop checks its condition after each repeat?

Understand It with Pulse
2

A robot needs to repeat a task until its battery is low. Which loop should its program use?

Understand It with Pulse
3

A tablet sorts a list of 5 lap times with a bubble sort. How many passes does it need at most?

Understand It with Pulse
4

A smartphone sorts a short list of contacts into order. Which sort compares neighbours and swaps them if they are in the wrong order?

Understand It with Pulse
5

A laptop runs a search to find a file by name. The files are not in any order. Which search should it use?

Understand It with Pulse
6

A keyboard types a list of numbers into a program. The program adds them up in turn. What is the total of 3, 7, 2 and 9?

Understand It with Pulse
7

In a binary search, what happens after checking the middle item?

Understand It with Pulse
8

What is an advantage of a merge sort?

Understand It with Pulse
9

What is pattern recognition?

Understand It with Pulse
10

In a linear search, when is the item found quickest?

Understand It with Pulse
11

A bubble sort sorts a list of 8 items. How many passes does it need at most?

Understand It with Pulse
12

A binary search checks a sorted list of 64 items. After two checks, at most how many items can still need checking?

Understand It with Pulse
13

In a flowchart, what does the input output symbol show?

Understand It with Pulse
14

A binary search checks a sorted list of 64 items. After one check, at most how many items can still need checking?

Understand It with Pulse
15

In AQA pseudocode, how are comments marked?

Understand It with Pulse
16

Which of these is the most efficient way to find an item in a long sorted list?

Understand It with Pulse
17

A program sets total to 0, then adds each number in the list 3, 7, 2, 9 in turn. What is the value of total at the end?

Understand It with Pulse
18

When is an insertion sort efficient?

Understand It with Pulse
19

What is a flowchart?

Understand It with Pulse
20

In a bubble sort, which items are compared?

Understand It with Pulse
21

A bubble sort makes its first pass over the list 4, 1, 2, 3, comparing each pair of neighbours and swapping them if they are in the wrong order. How many swaps are made in this pass?

Understand It with Pulse
22

A program counts how many numbers in the list 30, 40 are greater than 10. What is the count at the end?

Understand It with Pulse
23

A linear search checks a list of 40 items. What is the most items it can check before it finishes?

Understand It with Pulse
24

How does a binary search work?

Understand It with Pulse
25

What is a disadvantage of a merge sort?

Understand It with Pulse