Font size
S
M
L
XL
WorksheetsSTD5&6_HOUR_OF_CODE_TEST1
Total questions: 13
Worksheet time: 27mins
Name
Class
Date
1.
What is programming?
4 lines
2.
A PROGRAM is a series of _____________ for a computer or device to follow
a)
instructions
b)
windows
c)
suggestions
d)
voices
3.
A single instruction or command of a program is _______________________ .
a)
code
b)
step
c)
game
d)
word
4.
The days of the week is an example of a(n) __________________ loop.
a)
infinite or forever
b)
finite
c)
toe
d)
shoelace
5.
A repeat loop is a group of _______________ which is repeated as needed.
a)
code
b)
students
c)
programs
d)
bananas
6.
The two types of loops are known as ___________ ______ ____________ .
a)
infinite and finite
b)
forever and infinite
c)
short-term and long-term
d)
endless and ending
7.
Infinite loops are also called _________ loops.
a)
endless
b)
forever
c)
never ending
d)
neverland
8.
A forever loop is a code pattern that repeats ___________________ .
a)
as long as the program is running
b)
for a set number of times
c)
until a condition is met
d)
as long as Google wants it to.
9.
Finite Loops are code which is repeated until a _____________ is met or for a specific number of times
a)
condition
b)
love interest
c)
friend
d)
teacher
10.
Conditionals are used when computers need to make _____________.
a)
decisions
b)
a cake
c)
dinner
d)
a friend
11.
IF...THEN and IF...THEN...ELSE are two types of ________________.
a)
conditional statements
b)
repeat loops
c)
jokes
d)
programs
12.
In an IF...THEN statement, the THEN part of the code is followed when the IF condition is ___________ .
a)
true
b)
false
c)
either true or false
d)
neither true nor false
13.
In an IF...THEN...ELSE statement, the ELSE part of the code is followed when the IF condition is ___________ .
a)
true
b)
false
c)
either true or false
d)
neither true nor false
Reset
