Python while loops
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Sean Rattigan
Used 308+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
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)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A while loop is used when
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
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the final value of n?
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.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
It would print 'So good to see you' infinite number of times
There would be no output
It would print an error message.
It would print 'Enter correct code'.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The condition for a while loop to continue could include which of the following?
While something equals something
While something is True
While something is greater than something
All of these
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the final value of the variable 'number'?
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Python básico
Quiz
•
9th - 12th Grade
20 questions
A Level CS - 06 Boolean Algebra & Logic Gates
Quiz
•
11th - 12th Grade
17 questions
Computer Basics: Basic Parts of a Computer Quiz By Mr. B
Quiz
•
12th Grade - University
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
20 questions
Google SketchUp Tool
Quiz
•
KG - University
22 questions
Steve Jobs
Quiz
•
6th - 12th Grade
15 questions
Unbound Report Quiz
Quiz
•
9th - 12th Grade
15 questions
Code.org Lesson 1-14
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
