
Iteration - While Loop
Authored by M Dwedari
Computers
8th - 12th Grade
Used 58+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of this code?
Error
0, 1, 2, ...., 27
0, 1, 2, ...., 30
Infinite iteration
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this code?
0, 1, 2, 3, 4, ...., 29
0, 2, 4, ...., 28, 30
0, 1, 2, 3, 4, ...., 30
Infinite loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
0, 1, 2, 3,...., 30
Error
0, 1, 2, 3,...., 29
0, 1, 2, 3,...., 28
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of this code?
0, 3, 6, 9,....., 30
0, 3, 6, 9, ...., 27
0, 1, 2, 3, 4, ..., 30
0, 3, 6, 9,....., 33
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10, 13, 16, ....30
10, 13, 16,....27
Error
no errors and no output
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of this code?
10, 12, 14, 16
10, 12, 14, 16, 18
10, 12, 14
Infinite iteration
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of this code?
65, 63, 61, 59, 57, 55
65, 63, 61, 59, 57, 59
67, 65, 63, 61
error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?