What will be the output of this code?
Iteration - While Loop

Quiz
•
Computers
•
8th - 12th Grade
•
Hard
M Dwedari
Used 49+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Python programming

Quiz
•
6th - 12th Grade
17 questions
Python KS3

Quiz
•
8th Grade
10 questions
Programming in Java

Quiz
•
8th Grade
10 questions
C#

Quiz
•
11th Grade
15 questions
PYTHON PROGRAMMING

Quiz
•
11th - 12th Grade
15 questions
Selection in Python

Quiz
•
1st - 9th Grade
10 questions
Python - Printing, Variables and Syntax

Quiz
•
8th Grade
10 questions
Functions - C

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade