WorksheetsProgramming Concepts Quiz
Total questions: 60
Worksheet time: 30mins
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?
3.5
"3"
3
True
What type is "Hello"?
int
float
str
bool
What type is 3.14?
int
float
str
bool
What type is True?
str
float
bool
int
Which of these is a string?
12
"12"
12.0
False
What does int("5") return?
"5"
5
5.0
Error
What does float(7) return?
7.0
"7"
70
Error
What type is returned by type("hi")?
int
str
float
bool
What does str(8) return?
8
"8"
8.0
Error
What is a Boolean?
A number
A true/false value
A decimal value
A word
What is a sprite in Scratch?
A code block
A character or object
A variable
A song
Which block starts a Scratch project?
When green flag clicked
Forever
Go to
Say message
Which Scratch block moves a sprite?
Move 10 steps
Say Hello
Change costume
Play sound
Which is a valid Python variable name?
2name
name_2
@value
class
What happens when you run x = 5; x = x + 3?
x becomes 53
x becomes 8
x becomes 35
Error
Which type is 0.0?
int
float
bool
str
What is 10 // 3?
3
3.33
4
Error
What type is False?
int
float
str
bool
Which Scratch category contains motion blocks?
Looks
Motion
Events
Operators
What does bool(0) return?
True
False
Error
0
What does float("5") return?
"5"
5
5.0
Error
What type is returned by type(5.5)?
int
float
str
bool
What is the value of 12 % 5?
1
2
0
5
A variable in Scratch can store:
Only numbers
Only text
Both numbers and text
Only sprites
Which block in Scratch repeats forever?
Repeat
Forever
If
Wait
Which of these is NOT a Python type?
int
float
sprite
bool
What does x = "10" store?
int
float
str
bool
What is 4 + 4 * 2?
16
12
8
6
Which Scratch block makes a sprite talk?
Move 10 steps
Say Hello
Turn 15 degrees
Repeat
What is the type of 100?
int
float
str
bool
What is the output of type(False)?
str
int
bool
float
What is the type of "123"?
int
float
str
bool
What is 5 * 2?
52
25
10
5
What block changes sprite appearance?
Change costume
Forever
Move steps
Repeat
What does x = 5 do?
Creates a sprite
Stores a value in a variable
Deletes data
Moves a sprite
What is the result of 9 / 3?
3.0
3
6
Error
Which is a float?
10
10.0
True
"10"
In Scratch, which block checks conditions?
If
Move
Say
Play sound
What is the output of int(4.8)?
5
4.8
4
Error
Which of these is a Boolean?
"True"
1
False
"False"
What is a script in Scratch?
A drawing
A group of blocks
A sprite name
A folder
What type is returned by type("Python")?
int
str
bool
float
Which operator multiplies numbers?
+
-
*
%
Which operator finds the remainder?
//
%
**
/
What is the type of 7.0?
int
float
bool
str
What happens with x = 2; x = x * 4?
x becomes 6
x becomes 24
x becomes 8
Error
In Scratch, what does "go to x:0 y:0" do?
Moves sprite home
Deletes sprite
Plays music
Rotates sprite
Which is a valid Python variable?
my-name
myName
1value
class
What is the result of float(3)?
3.0
"3"
3
Error
Which type represents whole numbers?
int
float
bool
str
What color is the Motion category in Scratch?
Blue
Yellow
Purple
Green
What is the value of 20 % 6?
2
0
6
4
What does type(True) return?
int
bool
float
str
What is the result of 3 + 7 / 2?
5
6.5
3.5
10
In Scratch, which block changes x position?
Change x by
Say
Repeat
Play sound
What is the type of "456"?
int
float
str
bool
What does bool(1) return?
False
True
1
Error
What is an expression?
A value
A combination of values and operators
A Python file
A sprite name
What is the output of 7 - 2 * 3?
15
1
-1
6
