Algorithms and flowcharts – A Level Information Technology (9626)
16 questions · page 1 of 2 · Clear filters
Question text
8
A combined heating and air conditioning system has been installed in a house. The system
measures the temperature in the house and reacts as programmed. The user can override the
temperature settings of the system to suit their needs.
(a) Identify two input devices that will be used as part of this system.
input device 1 …
input device 2 …
[2]
(b) Explain, with the example of a pump, the purpose of an actuator in this system.
…
…
…
…
…
… [2]
© Cambridge University Press & Assessment 2026
,
,
The system has the following rules:
•
If the temperature exceeds 28 degrees Celsius, a fan will turn on and the heating system will
turn off.
•
If the temperature falls below 19 degrees Celsius, the fan will turn off and the heating will
turn on.
(c) Complete the pseudocode algorithm to show the processing that takes place in this
combined system. The variable temperature represents the temperature of the house.
REPEAT
INPUT temperature
[8]
© Cambridge University Press & Assessment 2026
Question text
2
A partially completed algorithm is shown. Line numbers are given for reference. Some lines
are incomplete.
The user will input five numbers, one number at a time.
After five numbers have been entered, the largest number and the smallest number will be
displayed as part of a suitable message.
The algorithm uses a WHILE loop.
0
10
Count
0
20
Number
0
30
Largest_Number
…
40
Smallest_Number
50
INPUT Number
Number
60
Largest_Number
Number
70
Smallest_Number
80
WHILE Count < …
90
INPUT …
100
IF Number … Largest_Number
110
…
Number
120
Largest_Number
130
…
140
IF Number … Smallest_Number
Number
150
THEN Smallest_Number
160
ENDIF
170
…
…
180
Count
190
ENDWHILE
200
PRINT “The largest number is “Largest_Number”
and the smallest number is “Smallest_Number”.”
© Cambridge University Press & Assessment 2026
,
,
(a) Use the table to show how each line may be completed. Line 40 has been done for you as
an example of how the question should be answered.
line
current code
completed code
…
Smallest_Number
0
40
Smallest_Number
80
WHILE Count < …
90
INPUT …
100
IF Number … Largest_Number
110
…
130
…
140
IF Number … Smallest_Number
170
…
…
180
Count
[8]
(b) Explain why Largest_Number (line 60) and Smallest_Number (line 70) are both set to
the same value collected in line 50.
…
…
…
…
…
…
…
…
…
… [4]
© Cambridge University Press & Assessment 2026
Question text
9
The program flowchart produces the output of the sum of 10 numbers.
There are errors and omissions in the flowchart.
Start
Count
0
No
Count
Stop
>= 10?
Yes
Input
Number
Count
Count + 1
Sum
Sum + number
Explain two corrections that should be made to the flowchart.
…
…
…
…
…
…
…
…
…
… [4]
ĬÓĊ®Ġ´íÈõÏĪÅĊàú·þ×
Question text
7
A teacher is writing a program to process test marks for a class.
For marks above 70, the program will output “You have achieved a Distinction”.
For marks from 55 to 70, the program will output “You have achieved a Merit”.
For marks from 40 to 54, the program will output “You have achieved a Pass”.
For marks below 40, the program will output “You have not reached the Pass mark”.
Write a pseudocode algorithm using REPEAT...UNTIL which allows the teacher to input 20 test
marks and outputs the correct message for each inputted mark.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Question text
9
Describe how a microprocessor-controlled car park barrier system makes use of an induction
loop.
…
…
…
…
…
…
…
…
…
…
…
… [5]
ĬÑĊ®Ġ´íÈõÏĪÅĊßûµĀ×
Question text
13 The average (mean) of a set of 12 numbers is calculated by:
•
adding the numbers together to get a total
•
dividing the total by 12.
A student has attempted to draw a flowchart of an algorithm which finds the average of 12
numbers. They have made some errors.
Start
count = 0
average = sum * 12
Input first number
sum = sum + input
Display average
number
Input next number
No
Yes
is count = 12?
ĬÑĊ®Ġ´íÈõÏĪÅĊàû·Ā×
,
,
Redraw the flowchart, with the errors corrected.
[5]
ĬÓĊ®Ġ´íÈõÏĪÅĊàù·Ā×
,
,
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
ĬÍĊ®Ġ´íÈõÏĪÅĊÝú¶Ą×
Question text
8
Create a pseudocode algorithm to allow a number to be entered and to output a result when the
number is:
•
divided by 4 if it is less than 8
•
divided by 8 if it is between 8 and 12 inclusive
•
divided by 12 if it is any other number.
Write the pseudocode algorithm using CASE...ENDCASE.
…
…
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
7
Draw a program flowchart, in the space provided, that will allow an examination mark to be entered
and then output an appropriate message giving the correct grade, as shown in the table. All marks
are integers.
Mark
Message
85 or more
Grade A
70 or more
Grade B
50 or more
Grade C
Any other mark
Grade U
[8]
Question text
8
Complete this flowchart which will allow the input of ten numbers.
•
A number is even if the number divided by 2 is an integer.
•
If a number (N) is odd, it will be added to the odd total (OT).
•
If a number (N) is even, it will be added to the even total (ET).
•
Both these totals will be output after the tenth number has been processed.
Start
count
count + 1
ET
ET + N
Stop
[8]
Question text
10 Gustav has started to write an algorithm using pseudocode. It will input 6 numbers, all less than
1000, and output the smallest value.
Complete the algorithm using pseudocode.
0
count
smallest 1000
WHILE count < 6
…
…
…
…
…
…
…
… [6]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
Question text
6
A computer-controlled traffic light system controls the flow of motor vehicles and pedestrians.
Describe the inputs, processing and outputs involved in this system.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
… [8]
Question text
11
In Ruritania these are the tax rules.
•
People who earn up to $10 000 pay no tax.
•
People who earn between $10 000 and $40 000 pay 20% tax on their earnings above $10 000.
•
People who earn more than $40 000:
pay $6 000 ($30 000 × 20%)
and pay 40% tax on their earnings above $40 000.
Complete this flowchart which shows how the net wage (the money earned after tax is paid) is
calculated and is output for an individual in Ruritania.
Start
Input
earnings
Stop
[8]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
Question text
7
Josefine has started to draw a flowchart which inputs 10 numbers and outputs the largest value.
Complete the flowchart by filling in the empty boxes and by placing yes and no as appropriate in
the diagram.
Start
count
0
max
0
Input
number
Stop
[7]
Question text
8
A microprocessor-controlled car park barrier is used to allow cars to enter a car park. When a
car approaches the barrier, the barrier automatically rises to allow the car to enter. It does not
lower until the car is safely clear of the barrier system. There is a light sensor and light beam
source immediately before the barrier. No tickets are issued by the system. The system operates
continuously while it is switched on.
Complete this pseudocode algorithm to describe the processing involved. Your pseudocode
algorithm should include IF…THEN statements.
REPEAT
INPUT reading from induction loop
…
…
…
…
…
…
…
…
…
…
…
…
…
… [7]
Question text
11
Complete the flowchart below to add up 6 numbers.
Use the variable total to store the sum of the numbers and the variable count to control the number
of times the loop is repeated.
Start
INPUT
number
Stop
[7]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge