Professional Documents
Culture Documents
2-Python 3 Loops - Print - Quizizz
2-Python 3 Loops - Print - Quizizz
NAME :
CLASS :
Python 3 Loops
DATE :
140 Questions
a) The repetition of steps within a program b) The order in which instructions are carried
out
c) It allows multiple paths through a program d) It ensures the code works correctly
a) = b) !=
c) == d) >=
a) == b) !=
c) <> d) ><
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 1/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) <= b) >>
c) >= d) =>
9.
a) 5 b) 4
4 3
3 2
2 1
1 0
c) 5 4 3 2 1 d) 4 3 2 1 0
10.
a) 5 b) 4
4 3
3 2
2 1
1 0
c) 5 4 3 2 1 d) 4 3 2 1 0
11.
a) 5 b) 5 4 3 2 1
4
3
2
1
c) 4 d) 4 3 2 1 0
3
2
1
0
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 2/27
2/14/2020 Python 3 Loops | Print - Quizizz
12.
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
13.
a) 12 9 6 3 0 b) 0 3 6 9 12
c) 9 6 3 0 d) 0 3 6 9
14.
a) 0 5 10 b) 5 10
c) 0 5 10 15 20 25 30 35 40 45 50 55 60 d) 12 7 2
65 70 75 80 85 90 95 100 105 110 115
120 125 130 135 140......etc
15.
a) 12 17 22 b) 5
c) 12 d) 5 10
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 3/27
2/14/2020 Python 3 Loops | Print - Quizizz
16.
17.
a) << b) =<
c) <= d) !=
19.
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 4/27
2/14/2020 Python 3 Loops | Print - Quizizz
20.
c) if loop d) indentation
a) int b) string
c) bool d) float
24. The character that must be at the end of the line for if, while,
for etc.
a) : b) ;
c) . d) ,
c) Variable d) Selection
a) n b) num
c) value d) i
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 5/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) w b) y
c) z d) i
a) 100 b) 10
c) 5 d) 20
a) 25 b) 4
c) 1 d) 0
a) 20 b) 5
c) 2 d) 15
a) 50 b) 3
c) 5 d) 10
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 6/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) 6 b) 1
c) 0 d) 10
a) 0 b) 5
c) 2 d) 20
a) 5 b) 50
c) 10 d) 3
a) 5 b) 3
c) -5 d) 1
a) 15 b) 7
c) 10 d) 1
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 7/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) 15 b) 1
c) 10 d) 100
a) 15 b) 1
c) 3 d) 5
a) 30 b) 1
c) -3 d) -10
a) -100 b) 1
c) 5 d) -5
a) 1 b) 10
c) 9 d) 8
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 8/27
2/14/2020 Python 3 Loops | Print - Quizizz
42. In a Python program, how many outputs will occur for the
snippet of code?
a) 15 b) 3
c) 6 d) 5
43. In a Python program, how many outputs will occur for the
snippet of code?
a) 5 b) 2
c) 8 d) 4
a) 1 b) 1
2 2
11 21
c) 1 d) 1
2 2
3 3
11 21
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 9/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) 0 b) 2
c) 3 d) 1
a) 18 b) -25
c) -10 d) -15
50. Which of the following can complete the code so that 6.0 prints
to the screen?
a) * 3 / 2 b) + 1
c) / 0.5 d) + 3 * (1/ 2)
a) 1, 0, 1, 1, 0, 1, 1, 1, 1, 1 b) 0, 1, 1, 0, 1, 1, 0, 1, 1, 0
c) 0, 1, 1, 0, 1 d) 0, 1, 1, 1, 1, 1, 0, 1, 1, 0
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 10/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) 3 b) 2
c) 1 d) 4
54. What should replace the two empty spaces in order to get the
output: -1, -0.5, 0.0 1.0, 2.0, 3.0, 3.5, 4.0
a) -6, 5 b) 6, -0.5
c) 5, 1.5 d) 6, 0.5
a) 5 b) 4
c) 3 d) 2
56.
a) 5 b) 6
c) 21 d) 36
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 11/27
2/14/2020 Python 3 Loops | Print - Quizizz
57.
a) 5 b) 6
c) 21 d) 36
58.
a) A b) B
c) C d) D
a) A b) B
C
a) Score.add(1) b) score + 1
a) if a == b b) if a = b:
c) if a != b: d) if a == b:
62. What are the two main types of loops that we have learned
about in Python?
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 12/27
2/14/2020 Python 3 Loops | Print - Quizizz
63. What type of loop is used when you know how many times you
want to repeat something?
64. What type of loop is used when you DO NOT know how many
times you want to repeat something?
amount = 2 + 5 * 2
a) 12 b) 9
c) 14 d) 5
67. How many times does the following program print the word
‘computer’:
word= "computer"
for num in range(1,6):
print(word)
a) 5 b) 6
c) 1 d) 0
68. Look at the code below and identify which of the statements
below are true:
a) Starts at 10, goes up to 100, increases by 10 b) Starts at 10, goes upto 101, increases by 10
c) Starts at 1, goes upto 100, increases by 1 d) Starts at 10, goes upto 10, increases by 10
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 13/27
2/14/2020 Python 3 Loops | Print - Quizizz
69.
a) 5 b) 4
4 3
3 2
2 1
1 0
c) 5 4 3 2 1 d) 4 3 2 1 0
70.
a) 5 b) 4
4 3
3 2
2 1
1 0
c) 5 4 3 2 1 d) 4 3 2 1 0
71.
a) 5 b) 5 4 3 2 1
4
3
2
1
c) 4 d) 4 3 2 1 0
3
2
1
0
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 14/27
2/14/2020 Python 3 Loops | Print - Quizizz
72.
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
a) 1 b) 1
2 2
11 21
c) 1 d) 1
2 2
3 3
11 21
a) == b) !=
c) > d) =
a) To show a statement is equal to another b) To allow the computer to run the program
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 15/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) a do-while loop is harder to write b) a while-endwhile loop takes longer for the
computer to run
c) a do-while checks the condition at the end of d) a while-endwhile checks the condition at the
the loop end of the loop
a) Yes b) No
a) > b) <
c) ∞ d) :
81.
a) 5 b) 4
4 3
3 2
2 1
1 0
c) 5 4 3 2 1 d) 4 3 2 1 0
a) The repetition of steps within a program b) The order in which instructions are carried
out
c) A decision point in a program d) Testing a program to make sure it works
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 16/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) 0,1,2,3,4,5 b) 0,1,2,3,4
c) 1,2,3,4,5 d) Error
a) x b) (6)
c) for d) range
a) The repetition of steps within a program b) The order in which instructions are carried
out
c) It allows multiple paths through a program d) It ensures the code works correctly
a) loops which run an unknown number of times b) loops which run for a specific number of
times
a) loops which run an unknown number of times b) loops which run for a specific number of
times
91. A condition is
c) an integer d) a list
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 17/27
2/14/2020 Python 3 Loops | Print - Quizizz
92. The condition for a while loop to continue could include which
of the following?
a) While something equals something b) While something is greater than something
97.
a) 192 b) 184
c) 150 d) 196
98.
a) 35 b) 39
c) 45 d) 44
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 18/27
2/14/2020 Python 3 Loops | Print - Quizizz
99.
a) 61121365681111 b) 61121365681111146
c) 61121365681111146186231 d) 61121365681111146186231281336
a) int b) string
c) bool d) float
101.
a) 02468 b) 0246810
c) 13579 d) 0246
c) If Loop d) indentation
a) << b) =<
c) <= d) !=
104.
a) 12 17 22 b) 5
c) 12 d) 5 10
105.
a) 12 9 6 3 0 b) 0 3 6 9 12
c) 9 6 3 0 d) 0 3 6 9
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 19/27
2/14/2020 Python 3 Loops | Print - Quizizz
106.
a) 54321 b) 5 4 3 2 1
c) 43210 d) 4 3 2 1 0
107.
a) 54321 b) 43210
c) 5 4 3 2 1 d) 4 3 2 1 0
108.
a) 54321 b) 43210
c) 5 4 3 2 1 d) 4 3 2 1 0
a) <= b) >>
c) >= d) =>
a) == b) !=
c) <> d) ><
a) = b) !=
c) == d) >=
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 20/27
2/14/2020 Python 3 Loops | Print - Quizizz
112. Which of the following best describes the order in which these
lines are processed in Python?
a) 1,2,3,4 b) 1,2,1,2,1,4
c) 1,2,1,2,1,2,4 d) 1,2,1,2,1,2,1,2,4
113.
a) 5 b) 6
c) 21 d) 36
114.
a) 5 b) 6
c) 21 d) 36
115. Where does "print t" need to be in order for the code to
generate the following output?
a) A b) B
c) C d) D
116. Where does "print t" need to be in order for the code to
generate the following output?
a) A b) B
c) C d) D
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 21/27
2/14/2020 Python 3 Loops | Print - Quizizz
117.
a) A b) B
c) C d) D
118.
a) A b) B
c) C d) D
119.
a) A b) B
c) C d) D
a) A b) B
c) C d) D
a) 0 b) 9
c) 27 d) 81
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 22/27
2/14/2020 Python 3 Loops | Print - Quizizz
122. What is 3 % 3
a) 0 b) 1
c) 3 d) 9
123.
a) A b) B
c) C d) D
124.
a) A b) B
c) C d) D
125.
a) A b) B
c) C d) D
a) 48 b) 81
c) 114 d) 10
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 23/27
2/14/2020 Python 3 Loops | Print - Quizizz
a) 48 b) 81
c) 12 d) 10
128.
a) A b) B
c) C d) D
129.
a) A b) B
c) C d) D
130.
a) A b) B
c) C d) D
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 24/27
2/14/2020 Python 3 Loops | Print - Quizizz
131.
a) A b) B
c) C d) D
a) 6 b) 8
c) 5 d) 9
a) 5 b) 6
c) 2 d) 1
a) 8 b) 10
c) 16 d) 20
135. Choose the brackets that are used for making a list.
a) list = { } b) list = [ ]
136.
a) A b) B
c) C d) D
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 25/27
2/14/2020 Python 3 Loops | Print - Quizizz
137.
a) A b) B
c) C d) D
138.
a) A b) B
c) C d) D
139.
a) A b) B
c) C d) D
140.
a) A b) B
c) C d) D
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 26/27
2/14/2020 Python 3 Loops | Print - Quizizz
Answer Key
1. a 36. d 71. b 106. b
2. b 37. a 72. a 107. a
3. c 38. b 73. a 108. b
4. d 39. c 74. a 109. c
5. d 40. d 75. b 110. b
6. c 41. c 76. c 111. c
7. b 42. d 77. c 112. b
8. c 43. d 78. c 113. c
9. b 44. a 79. a 114. a
10. a 45. b 80. d 115. a
11. b 46. d 81. a 116. b
12. a 47. a 82. a 117. d
13. d 48. c 83. b 118. c
14. c 49. d 84. b 119. b
15. c 50. a 85. a 120. b
16. c 51. d 86. a 121. c
17. b 52. b 87. b 122. a
18. c 53. b 88. c 123. a
19. b 54. d 89. b 124. b
20. a 55. a 90. a 125. c
21. b 56. c 91. a 126. a
22. a 57. a 92. d 127. d
23. c 58. d 93. b 128. a
24. a 59. c 94. a 129. c
25. b 60. d 95. b 130. b
26. a 61. d 96. a 131. d
27. b 62. b 97. d 132. d
28. c 63. c 98. c 133. d
29. d 64. a 99. a 134. d
30. a 65. a 100. c 135. b
31. b 66. b 101. a 136. a
32. d 67. a 102. a 137. b
33. a 68. a 103. c 138. d
34. b 69. b 104. c 139. a
35. c 70. a 105. d 140. b
https://quizizz.com/print/quiz/5e0dc17cbdc0e1001c5120e1 27/27