Easy2 marksExtended Response
Fundamentals of algorithmsGeneraldefinitionsalgorithms

AQA GCSE · Question 01.1 · Fundamentals of algorithms

Figure 1 shows an algorithm, represented using pseudo-code, which assigns a different value to four variables.

Figure 1
country ← 'United States of America'
state ← 'California'
city ← 'San Francisco'
landmark ← 'Alcatraz Island'

Define the term algorithm.

How to approach this question

Start by defining what an algorithm is in its simplest form. Think about what it is used for in computer science. A good answer will mention that it is a set of steps or instructions and its purpose is to solve a problem.

Full Answer

An algorithm is a sequence of steps / set of rules that are followed to solve a problem or complete a task.
An algorithm is a finite, step-by-step set of instructions or rules designed to perform a specific task or solve a particular problem. In computing, algorithms are fundamental as they provide the logic for how a program should execute to achieve its goal. For example, a sorting algorithm provides the steps to arrange a list of numbers in ascending order.

Common mistakes

✗ Being too vague, e.g., "it is a process".\n✗ Confusing an algorithm with a program or code. An algorithm is the logic, while code is the implementation of that logic in a specific programming language.

Practice the full AQA GCSE Computer Science Paper 1 Python

31 questions · hints · full answers · grading

More questions from this exam