Font size
S
M
L
XL
WorksheetsMINECRAFT/PYTHON QUIZ
Total questions: 20
Worksheet time: 18mins
Name
Class
Date
1.
Doing something over and over again
a)
sequence
b)
Boolean
c)
debug
d)
loop
2.
A step-by-step procedure for solving a problem or running a program
a)
algorithm
b)
conditional statement
c)
iteration
d)
event handling
3.
A single value of either TRUE or FALSE; used for conditional statements
a)
loop
b)
sequence
c)
event handling
d)
Boolean
4.
Which one is different?
a)
A
b)
B
c)
C
d)
D
5.
What will this program do (pseudocode)?
a)
Move forward, turn around, return to start
b)
Move forward, turn left, move forward
c)
Move forward 5 times, turn left, move forward 5 times
d)
Move left 5 times
6.
The language of computer programming is
a)
Spanish
b)
English
c)
Code
d)
Pig-latin
7.
The character that must be at the end of the line for if, while, for etc.
a)
:
b)
;
c)
.
d)
,
8.
The second part of if, that is executed when the condition is false
a)
if
b)
else
c)
for
d)
input
9.
To repeat until a particular condition is true use
a)
while loop
b)
for loop
c)
if loop
d)
indentation
10.
To repeat a fixed number of times use a
a)
while loop
b)
for loop
c)
if loop
d)
indentation
11.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
12.
Data type for a whole number
a)
String
b)
Integer
c)
Boolean
d)
Float
13.
What does the print function do in python?
a)
It's a variable.
b)
It can input data.
c)
It displays something like a string or integer
d)
It loops the code.
14.
What symbol do you use to make a comment in Python?
a)
@
b)
¬
c)
;
d)
#
15.
includes numbers and booleans
a)
data types
b)
whitespace
c)
modulo
d)
comments
16.
The correct way to write a variable in Python?
a)
my_variable = 10
b)
my variable = 10
c)
my_variable is 10
d)
my_variable: 10
17.
The website used for the Minecraft Activity
a)
code.prog/minecraft
b)
code.org/minecraft
c)
code.org.minecraft
d)
code.minecraft.org
18.
A person who writes code is called a
a)
coder
b)
computer programmer
c)
technologist
d)
scientist
19.
Converts a number to a string
a)
str()
b)
int()
c)
parseInt()
d)
convert
20.
To code on the code.org site, you move blocks that hold code onto a workspace.
a)
True
b)
False
Reset
