We are working with Cambridge Assessment International Education towards endorsement of this title.
CAMBRIDGE LOWER SECONDARY COMPUTING 8: WORKSHEET 1.1B
Name ___________________________________ Date _____________
Worksheet 1.1B: Pseudocode algorithm
Task 1
Read this pseudocode algorithm and then answer the questions.
OUTPUT "Please enter your favourite number"
INPUT number
OUTPUT "Enter a number to add to this number"
INPUT addNumber
addNumber = number + addNumber
OUTPUT "Enter a number to multiply by"
INPUT multiplyNumber
OUTPUT "The result is", multiplyNumber * addNumber
1 Describe each line of pseudocode to a partner, identifying each keyword and what it means.
2 Rewrite the algorithm with:
• a different assignment symbol
• a different keyword (code/command word) for output each time it occurs
• a different keyword (code/command word) for input each time it occurs.
Cambridge Lower Secondary Computing 8 – Ellis & Fishpool © Cambridge University Press & Assessment 2023 1
Original material © Cambridge University Press & Assessment 2023. This material is not final and is subject to further changes prior to publication.
We are working with Cambridge Assessment International Education towards endorsement of this title.
CAMBRIDGE LOWER SECONDARY COMPUTING 8: WORKSHEET 1.1B
3 Test the algorithm with this input data in the order given:
20
100
Write all the outputs the program will give.
4 Rewrite the program in Python.
Task 2
Read this pseudocode algorithm and then answer the questions.
INPUT first
INPUT second
OUTPUT "Your name is ", first, " ", second
1 What will be output if the first data item input is "Arun" and the second item input is "Zen"?
2 What will be output if the third line of code is changed to:
OUTPUT "Your name is", first, second
Cambridge Lower Secondary Computing 8 – Ellis & Fishpool © Cambridge University Press & Assessment 2023 2
Original material © Cambridge University Press & Assessment 2023. This material is not final and is subject to further changes prior to publication.