Iteration
Save
Edit
Host a game
Live GameLive
Homework
Solo Practice
Practice
• Question 1
60 seconds
Q. In programming, what is iteration?
The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works
• Question 2
60 seconds
Q. Why is iteration important?
It determines the order in which instructions are carried out
It allows code to be simplified by removing duplicated steps
It allows multiple paths through a program
It ensures the code works correctly
• Question 3
60 seconds
Q. Which two statements are used to implement iteration?
IF and WHILE
ELSE and WHILE
FOR and WHILE
IF and ELSE
• Question 4
60 seconds
Q. Which type of loop iterates until instructed otherwise?
FOR loop
A count-controlled loop
Repeat-once loop
WHILE loop
• Question 5
60 seconds
Q. The condition for a while loop to continue could include which of the following?
While something equals something
While something is greater than something
While something is True
All of these
• Question 6
60 seconds
Q. Which of the following symbols is used in Python to mean "Equal to"?
=
!=
==
>=
• Question 7
60 seconds
Q. Which of the following symbols is used in Python to mean "Not equal to"?
==
!=
<>
><
• Question 8
60 seconds
Q. Which of the following symbols is used in Python to mean "Greater than or equal to"?
<=
>>
>=
=>
• Question 9
60 seconds
Q.
5
4
3
2
1
4
3
2
1
0
5  4  3  2  1
4  3  2  1  0
• Question 10
60 seconds
Q.
5
4
3
2
1
4
3
2
1
0
5  4  3  2  1
4  3  2  1  0
• Question 11
60 seconds
Q.
5
4
3
2
1
5  4  3  2  1
4
3
2
1
0
4  3  2  1  0
• Question 12
60 seconds
Q.
10  8  6  4  2
10
8
6
4
2
2  4  6  8  10
10  9  8  7  6  5  4  3  2  1
• Question 13
60 seconds
Q.
12  9  6  3  0
0  3  6  9  12
9  6  3  0
0  3  6  9
• Question 14
60 seconds
Q.
0  5  10
5  10
0  5  10  15  20  25  30  35  40  45  50  55  60  65  70  75  80  85  90  95  100  105  110  115  120  125  130  135  140......etc
12  7  2
• Question 15
60 seconds
Q.
12  17   22
5
12
5  10
• Question 16
60 seconds
Q.
Hello world!
Hello world
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
......(repeated continuously)
Error
• Question 17
60 seconds
Q.
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
(repeated continuously)
Hello world!
Hello world!
break
Error
• Question 18
60 seconds
Q. Which of the following symbols is used in Python to mean "Less than or equal to"?
<<
=<
<=
!=
• Question 19
60 seconds
Q.
Hello world!
Error
Hello world!
False
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
Hello world!
(repeated continuously)
• Question 20
60 seconds
Q.