WorksheetsExercise
Total questions: 40
Worksheet time: 20mins
What is a variable in programming?
A fixed number
A storage container for values
A computer part
A symbol
Which of these is an integer?
5.5
"5"
5
True
What type is "Hello"?
int
float
str
bool
What is a Boolean value?
A number
A true/false value
A word
A letter
Which of these represents a float?
12
12.0
"12"
True
In Scratch, what is a sprite?
A code block
A character or object
A variable
A sound
What does str(8) return?
8
"8"
8.0
Error
Which block in Scratch moves a sprite forward?
Turn 15 degrees
Move 10 steps
Say Hello
Go to x:0 y:0
What is the type of False?
float
int
str
bool
What is the correct way to assign a variable in Python?
x = 5
5 = x
x == 5
var x = 5
What type is 3.14?
int
float
bool
str
In Scratch, which block starts the program?
When green flag clicked
Forever
Go to block
Say block
What type is returned by int("6")?
float
int
str
bool
Which is a valid variable name?
2name
name2
@name
class
What does the Scratch block "repeat 10" do?
Stops code
Loops code 10 times
Moves sprite forever
Deletes sprite
What does type(7) return?
int
float
bool
str
Which statement is true about variables?
They cannot change
They store data
They delete data
They play music
In Scratch, which block changes a sprite's appearance?
Change costume
Play sound
Repeat
Move steps
What type is "123"?
int
float
str
bool
What is the value of 15 // 4?
3
4
5
3.75
In Scratch, which block makes a sprite speak text?
Move
Say
Jump
Look
What is the type of True?
float
int
bool
str
Which of these is NOT a Python type?
int
float
sprite
str
What happens when you run: x = 10; x = x + 5?
x becomes 5
x becomes 15
Error
x becomes 105
In Scratch, which block repeats forever?
If block
Repeat block
Forever block
Wait block
What type is returned by float(9)?
int
float
str
bool
Which value is Boolean?
"True"
1
False
"0"
What does a variable do in Scratch?
Plays music
Stores changing values
Creates sprites
Moves objects
What is the output of type("Hi")?
int
str
bool
float
Which of these is an expression?
5 + 3
x = 5
True
"Hello"
What does the Scratch block "change x by 10" do?
Changes variable x
Moves sprite on the x-axis
Changes sound volume
Rotates sprite
What is 8 % 3?
1
3
2
0
A variable in Scratch can:
Store only numbers
Store text and numbers
Only store text
Only store sprites
What is the type of 0.0?
bool
float
int
str
Which Scratch category contains motion blocks?
Events
Motion
Looks
Operators
What does x = "10" store?
An integer
A float
A string
A Boolean
Which is a numeric expression?
"hello"
True
4 * 2
sprite
In Scratch, which block checks conditions?
If block
Repeat block
Say block
Motion block
What is the result of 2 + 2 * 2?
8
6
4
2
What type is returned by type(3.5)?
int
float
str
bool
