Page 45 - Learn To Program With Scratch
P. 45
Problems
1. Write down the result of each block in the script below. Is there a pat-
tern in these products?
2. Is there a pattern in the products 9 × 9, 99 × 99, 999 × 999, ... , etc.?
Use the say command to find the result of these products and check
your answer.
3. Complete the following table by writing the value of each expression.
Expression Value
3 + (2 × 5)
(10 / 2) – 3
7 + (8 × 2) – 4
(2 + 3) × 4
5 + (2 × (7 – 4))
(11 – 5) × (2 + 1) / 2
5 × (5 + 4) – 2 × (1 + 3)
(6 + 12) mod 4
3 × (13 mod 3 )
5 + (17 mod 5) – 3
Now, use the say command and the appropriate operator blocks to
check your answers.
4. Evaluate the following Scratch expressions using a pencil and paper.
Let x = 2 and y = 4.
a) d)
b) e)
c)
Getting Started 23
www.it-ebooks.info

