-
Introduction
-
Introducing Scratch
- Scratch Ideas
-
Activities Overview
- Scratch Activities Project
-
Algorithms and Programs
-
Write an Algorithm
-
- Sequences
- Loops
- Data: Variables
- User Input
- Conditionals
- Conclusion
Check Your Understanding
Check Your Understanding
Now that we are the end of the Data activity, try and answer the questions below.
Data: Exercise 1
Have a read of the code blocks below:
There are five variables in the code blocks above. What are they named, what type (Boolean, Number or String) are they and what will their values be after the last block?
Data: Exercise 2
Read the blocks below, which involve a variable (times) that is used in a repeat block.
What is the value of the times variable after the last block in the stack above? How many times does the drum noise play?
Data: Exercise 3
A friend has created a short program as part of a bigger game project. He currently have the following blocks:
The friend wants to change the blocks so that every time he presses the space bar, the value of the times space bar pressed variable decreases by 1. How could he change the blocks above to do that?
Views | |
---|---|
1 | Total Views |
1 | Members Views |
0 | Public Views |
Share by mail
Please login to share this webpage by email.