wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Review loops

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following means not equal to

a)

==

b)

!=

c)

>

d)

=

2.
a)
5
4
3
2
1
b)
4
3
2
1
0
c)
5  4  3  2  1
d)
4  3  2  1  0
3.
Which two statements are used to implement iteration?
a)
IF and WHILE
b)
ELSE and WHILE
c)
FOR and WHILE
d)
IF and ELSE
4.
a)
Welcome
b)
Try again!
c)
Error
d)
Enter your password
5.

What will this display?

a)

0,1,2,3,4,5

b)

0,1,2,3,4

c)

1,2,3,4,5

d)

Error

6.

What is the variable in this for loop?

a)

x

b)

(6)

c)

for

d)

range

7.

How many times will this program print out "Let's play before the loop stops?"

a)

4

b)

5

c)

0

d)

9

8.
Which of the following symbols is used in Python to mean "Greater than or equal to"?
a)
<=
b)
>>
c)
>=
d)
=>
9.
Which of the following symbols is used in Python to mean "Equal to"?
a)
=
b)
!=
c)
==
d)
>=
10.
a)
10  8  6  4  2
b)
10
8
6
4
2
c)
2  4  6  8  10
d)
10  9  8  7  6  5  4  3  2  1
11.
a)
Hello world!
b)
Hello world
c)
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)
d)
Error
12.
a)
12  9  6  3  0
b)
0  3  6  9  12
c)
9  6  3  0
d)
0  3  6  9