A while loop is used when
Python while loop

Quiz
•
Computers
•
8th Grade
•
Medium
Raja Meenakshi
Used 3+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You know how many times you are going to loop
You want to loop for an unknown number of times, and possibly forever
You only want to run the code in the loop once
You see the word while in the problem description
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the code shown, what will happen?
It will print all the numbers from 0 to 11
It will print all the numbers from 0 to 11 in increments of 3
Infinite loop
It will not run (Syntax error)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For the code shown, what will happen?
It will print all the numbers from 0 to 11
It will print all the numbers from 0 to 11 in increments of 3
Infinite loop
It will not run (Syntax error)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is iteration important?
It determines the order in which instructions are carried out
It allows code to be simplified by removing duplicated steps into a block that can be executed many times
It allows multiple paths through a program
It ensures the code works correctly
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the final value of the variable 'number'?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
5
4
3
2
1
5 4 3 2 1
4
3
2
1
0
4 3 2 1 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
12 9 6 3 0
0 3 6 9 12
0 3 6 9
9 6 3 0
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
FOR and WHILE loop in Python

Quiz
•
9th - 12th Grade
15 questions
Exam 1 Practice

Quiz
•
University
13 questions
Python Iteration

Quiz
•
10th Grade
12 questions
Python Programming - Iteration

Quiz
•
9th Grade
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
15 questions
Computer science paper 2

Quiz
•
10th Grade
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
10 questions
Java Control Flow statements

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
25 questions
Argumentative Writing & Informational Text Vocabulary Review

Quiz
•
8th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade