Professional Documents
Culture Documents
Learner’s Book
answers
Note to the teacher: Please note that there are always answers to the Questions and Check your progress
features in the Learner’s Book. There may be suggested answers to some questions for Getting started,
Activity, Unplugged activity, Programming task and Practical task features if appropriate.
1 Victoria Ellis & Sarah Lawrey © Cambridge University Press & Assessment 2023
CAMBRIDGE LOWER SECONDARY COMPUTING 8: LEARNER’S BOOK ANSWERS
5 a
"The first ever computer was as big as a room."
b "Why was the computer sneezing?"
"It had a virus."
c Nothing – there will be no output
d Include an ELSE statement
Questions 1.4
1 Looks for a value in a set of data, items or objects
2 For example: a search engine, looking for a file, looking for a user’s details
3 Computers need to find values in sets of data
4 Hundreds
5 No, it depends on the data
6 One after the other in a line
7 It looks at each item in turn from the first to the last
8 Compare search data with "cat": not found; compare it with "rabbit": not found; compare it
with "mouse": not found; compare it with "sheep": not found; compare it with "horse": found.
(Note: learners may use ‘look at’ or similar instead of ‘compare’)
9 Compare search data with 3: not found; compare it with 44: not found; compare it with 9: not found;
compare it with 50: not found; compare it with 19: not found; compare it with 2: not found; no items
left – item not found. (Note: learners may use ‘look at’ or similar instead of ‘compare’)
Questions 1.5
1 if
2 Indent the code
3 0 or 1
4 "Hamster"
5 20
6 0
7 When the first condition is false
8 For example:
year = input("Enter your year group")
if year == "7":
print("This is your first year")
elif year == "8":
print("I hope your second year is enjoyable")
else:
print("You're the oldest year now")
2 Victoria Ellis & Sarah Lawrey © Cambridge University Press & Assessment 2023
CAMBRIDGE LOWER SECONDARY COMPUTING 8: LEARNER’S BOOK ANSWERS
4 The declaration line for the constant ‘message’ 4 To make them easier to program, to identify
repeated code, to divide the problem between
Questions 1.6 multiple programmers, to increase the speed
of writing the program
1 The data held in a constant cannot change,
but the data held in a variable can change Questions 1.10
2 An identifier and a value stored in them 1 Repeating
3 So the value cannot be accidentally changed, 2 Repeating development in cycles of
to avoid mistakes by writing the data value programming, then testing, then changing
incorrectly and so that you only need to or adding to the program, then testing and
change the value once and it will change in all so on . . . doing this repeatedly until the
places it is used program is finished
6 Round the number in the brackets up to the 5 Any way you would use any other data,
next whole number for example, in calculations, in selection
statements and in conditional statements
7 9999
10000 Check your progress 1
8 Random 1 All four answers (A, B, C and D)
are correct. One mark per correct answer. [4]
9 100, 101, 102, 103
3 Victoria Ellis & Sarah Lawrey © Cambridge University Press & Assessment 2023
CAMBRIDGE LOWER SECONDARY COMPUTING 8: LEARNER’S BOOK ANSWERS
2 11 [1]
3 C 1005 [1]
4 It searches a set of data in a program for a specific value [1]
5 It starts by checking the first item in the list, then it checks each item in turn until the item is
found or no items are left [2]
6 The first number (12) is checked; this is not 33, so the next number (3) is checked; this is not 33,
so the next number (33) is checked; this is 33, so the search stops [2]
7 D == [1]
8 B != [1]
9 a The program written should take one user’s name as input, take that user’s age as input,
convert to integer or other appropriate data type, then take a second user’s name and age in
the same way.
For example:
user1Name = input("Enter user 1's name")
user1Age = int(input("Enter user 1's age"))
user2Name = input("Enter user 2's name")
user2Age = int(input("Enter user 2's age")) [4]
b The program written should use an IF statement, check if the ages are the same, output that
they are the same if so, check if user 1 is older and output a name if true, check if user 2 is
older and output name if true.
For example:
user1Name = input("Enter user 1's name")
user1Age = int(input("Enter user 1's age"))
user2Name = input("Enter user 2's name")
user2Age = int(input("Enter user 2's age"))
if user1Age == user2Age:
print(user1Name, "and", user2Name, "are the same age")
elif user1Age > user2Age:
print(user1Name, "is older")
else:
print(user2Name, "is older") [5]
10 Radio [1]
11 a 10 [1]
b 20 [1]
c No data would be transferred because micro:bit 2 does not have a Button A [1]
d An image of a heart is displayed [1]
e An X is displayed [1]
12 Write a section or part of the code; test the section of code; edit the section of code to fix
errors or write the next section of code; and repeat until finished [4]
13 a Problems are broken down or split into smaller sub-problems [1]
b Any two from: Sub-problems are easier to solve and manage. Problems can be divided between
different people. Different sub-problems can be solved at the same time, which saves time. [2]
4 Victoria Ellis & Sarah Lawrey © Cambridge University Press & Assessment 2023
CAMBRIDGE LOWER SECONDARY COMPUTING 8: LEARNER’S BOOK ANSWERS
5
Unit 2 Helps us gather data
Field
from people
Practical task 2.2
1 Profit increases to $38, so $3 more profit A collection of all the
fields about a single
2 Profit decreases to $39, so $3 less profit Record
object in the database –
3 Profit increases to $40.50, so $13.50 a single row in the table
more profit
A collection of the data
Practical task 2.3 Validation
about one aspect of
every record – a single
1 $2.90 column in the table
2 50
Data
Rules for the data that
collection
Questions 2.1 form
is entered into a field
1 The data will not be useful if it is not suitable [4]
2 It may not be possible to use the data for 6
its intended purpose, or it could lead to
Validation Description
something negative happening, for example
rule
a person being given the wrong task
Length This rule checks how many
Questions 2.2 check characters have been entered.
This rule checks whether the
1 A paper-based or digital form that is used to Range
data entered is within a range
collect data for a purpose check
of values.
2 Any three from: presence check, format check, Presence This rule checks whether data
length check, range check check has been entered into a field.
3 To make sure that the data collected [3]
is accurate 7 Any two from: Whether all the data that
is stored is necessary; whether the data is
Check your progress 2 accurate; whether validation has been set
for the data that will be entered to make
1 To provide a realistic copy of how a
sure that all of the data is complete and
real-life system or scenario works [1]
correct; whether the data collection form
2 Any two from: flight simulator, is easy to use and has clear instructions
surgery simulator, driving simulator [2] for entering the data [2]
3 The information that is output and the
options that are given by the simulator [1]
Unit 3
4 It changes the values in a spreadsheet to
see what effect the changes have on other Questions 3.1
values in the spreadsheet in order to find
the outcome to a what-if question [2] 1 A small number of devices
2 Close together, normally in the same room
3 The user or company that created the PAN
5 Victoria Ellis & Sarah Lawrey © Cambridge University Press & Assessment 2023
CAMBRIDGE LOWER SECONDARY COMPUTING 8: LEARNER’S BOOK ANSWERS
6 Victoria Ellis & Sarah Lawrey © Cambridge University Press & Assessment 2023
CAMBRIDGE LOWER SECONDARY COMPUTING 8: LEARNER’S BOOK ANSWERS
7 Victoria Ellis & Sarah Lawrey © Cambridge University Press & Assessment 2023