58. What will be printed when the following code is executed?
Anonymous Quiz
4%
Hello 4
88%
hello hello hello hello
7%
TypeError
1%
infinite loop
WEAKLY PYTHON MILLIONAIRE DIGEST 19-25.09.2022
~ Topic #3 “While Loop”
~ Average accuracy 60%
~ Average involvement 63 people (25%)
N.B.
🐍 The “while” loop will continue to run until the specified condition is satisfied (e.g. “while x != 3…” means if x = 3, the code stops running)
🐍 “Print” function inside the loop prints every value it takes
🐍 The “break” statement immediately terminates a loop
~ Topic #3 “While Loop”
~ Average accuracy 60%
~ Average involvement 63 people (25%)
N.B.
🐍 The “while” loop will continue to run until the specified condition is satisfied (e.g. “while x != 3…” means if x = 3, the code stops running)
🐍 “Print” function inside the loop prints every value it takes
🐍 The “break” statement immediately terminates a loop
60. What will be printed when the following code is executed?
Anonymous Quiz
50%
15
18%
IndexError
28%
12345
4%
"12345"
61. What will be printed when the following code is executed?
Anonymous Quiz
15%
['or', 'I', 'go?']
19%
['Should', 'stay', 'should']
65%
['stay', 'should']
2%
['or', 'I']
62. What will be printed when the following code is executed?
Anonymous Quiz
57%
[1,8, 23, 3.14]
11%
error
10%
[1, 8, 'r', 'y', 23, 3.14, '^, %']
21%
[1,8, ("y"), 23, 3.14]
63. What will be printed when the following code is executed?
Anonymous Quiz
47%
3 4
20%
NameError
20%
3 4 5
14%
TypeError
64. What will the sixth line of the program’s result be?
Anonymous Quiz
5%
№6 color of rainbow is cyan
63%
№6 color of rainbow is blue
4%
№6 color of rainbow is green
29%
error
65. What will the third line of the program’s result be?
Anonymous Quiz
4%
№3 color of rainbow is orange
36%
№3 color of rainbow is yellow
3%
№3 color of rainbow is green
57%
error
66. What will be printed when the following code is executed?
Anonymous Quiz
56%
[2, 4, 5, 6, 7, 8, 9, 10]
9%
[2, 4, 5, 6, 7, 8, 9]
19%
TypeError
16%
[2, 4, 6, 8, 10]
67. What will be printed when the following code is executed?
Anonymous Quiz
64%
2
12%
3
12%
0
11%
TypeError