Iteration - While Loop

Quiz
•
Computers
•
8th - 12th Grade
•
Hard
M Dwedari
Used 50+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Python Code Quiz

Quiz
•
8th - 12th Grade
10 questions
Programming in Java

Quiz
•
8th Grade
10 questions
C#

Quiz
•
11th Grade
10 questions
Python Lesson 4 : if-elif-else conditionals

Quiz
•
8th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
15 questions
Code.org Unit 5 Lesson 15 Assessment

Quiz
•
9th - 12th Grade
16 questions
If-Else Loops: Python Programming

Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade