Paper question 49
(a) One variable (1 mark)radius (accept: area, or r).
Why: a variable is a named storage location whose value can change; the program stores the radius entered and the area calculated (
A=πr2).
(b) Two input statements (2 marks)1. ask [Enter the radius of the circle] and wait
2. set [radius] to (answer)
(Also accept any statement that gets data from the user, e.g. “Input radius”, “ask [Enter the value of pi] and wait”.)
Why: an input statement gets a value from the user. In Scratch, the “ask and wait” block shows a question and waits for the user's reply, and the reply (answer) is stored in the variable.