Iteration
Save
Edit
Host a game
Live GameLive
Homework
Solo Practice
Practice
20 QuestionsShow answers
  • Question 1
    60 seconds
    Q. In programming, what is iteration?
    answer choices
    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?
    answer choices
    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?
    answer choices
    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?
    answer choices
    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?
    answer choices
    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"?
    answer choices
    =
    !=
    ==
    >=
  • Question 7
    60 seconds
    Q. Which of the following symbols is used in Python to mean "Not equal to"?
    answer choices
    ==
    !=
    <>
    ><
  • Question 8
    60 seconds
    Q. Which of the following symbols is used in Python to mean "Greater than or equal to"?
    answer choices
    <=
    >>
    >=
    =>
  • Question 9
    60 seconds
    Q.
    answer choices
    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.
    answer choices
    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.
    answer choices
    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.
    answer choices
    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.
    answer choices
    12  9  6  3  0
    0  3  6  9  12
    9  6  3  0
    0  3  6  9
  • Question 14
    60 seconds
    Q.
    answer choices
    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.
    answer choices
    12  17   22
    5
    12
    5  10
  • Question 16
    60 seconds
    Q.
    answer choices
    Hello world!
    Hello world
    Hello world!
    Hello world!
    Hello world!
    Hello world!
    Hello world!
    Hello world!
    ......(repeated continuously)
    Error
  • Question 17
    60 seconds
    Q.
    answer choices
    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"?
    answer choices
    <<
    =<
    <=
    !=
  • Question 19
    60 seconds
    Q.
    answer choices
    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.
    answer choices
    Welcome
    Try again!
    Error
    Enter your password
Report Quiz
Join a game