Easy2 marksExtended Response
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.
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
Q01.2The variable `x` is assigned a value using the statement:
`x ← LEN(state)`
Using Figure 1, what ...EasyQ01.3What is the result of concatenating the contents of the variables `city` and `landmark` in Figure 1?EasyQ01.5The subroutine `POSITION` finds the first position of a character in a string.
For example, `POSI...EasyQ02.1Figure 2 shows an algorithm that uses integer division which has been represented using pseudo-co...EasyQ02.2In the algorithm in Figure 2, what will be output when the user input is 10?Medium
Expert