
Unit 5 Code hs
Quiz
•
Other
•
9th Grade
•
Practice Problem
•
Easy
birdy bird
Used 74+ times
FREE Resource
About this resource
This quiz focuses on Python programming fundamentals, specifically loop control structures including while loops, for loops, and nested loops. The content is appropriate for grade 9-10 students who are learning introductory computer science concepts. Students need a solid understanding of loop syntax, iteration mechanics, and program flow control to successfully complete these problems. The quiz assesses critical skills including predicting program output, understanding loop termination conditions, working with the range() function, implementing nested loop structures, and applying break and continue statements. Students must demonstrate their ability to trace through code execution step-by-step, calculate accumulator variables, differentiate between definite and indefinite iteration, and recognize when infinite loops occur. The questions require both conceptual knowledge of when to use different loop types and practical skills in reading and analyzing Python code segments. This quiz was created by a classroom teacher who designed it for students studying Python programming in grade 9. The assessment serves as an excellent tool for formative evaluation of student understanding before moving to more complex programming concepts. Teachers can deploy this quiz as a comprehensive review activity after completing a unit on loops, assign it as homework to reinforce classroom instruction, or use individual questions as warm-up exercises to begin class sessions. The variety of question types—from code tracing to conceptual understanding—makes it valuable for identifying specific areas where students need additional support. This quiz aligns with computer science standards including CSTA K-12 Computer Science Standards 3A-AP-10 (developing programs that incorporate learned concepts) and 3A-AP-11 (creating clearly named variables that represent different data types), as well as supporting 3A-AP-13 (creating prototypes that use algorithms to solve computational problems).
See more
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many lines will this program print?
while True:
print "hi"
0
1
an infinite number of lines
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many lines will this program print?
x = 10
while x > 0:
print x
x = x - 3
3
4
5
6
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following programs prints ten lines?
for i from 0 to 9:
print "hi"
for i from 0 to 9:
print "hi"
for i = 1 to 10:
print "hi"
for i in range(10):
print "hi"
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following best describes the purpose of a for loop?
A for loop is for doing something an indeterminate number of times.
A for loop is doing something an infinite number of times.
A for loop is for doing something a fixed number of times.
A for loop is for doing something three times.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which Python keyword skips back to the beginning of a loop?
break
continue
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If I am using the following condition in my program:
while True:
Which keyword should I use to make sure I don’t create an infinite loop?
break
continue
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following program print?
for i in range(2):
for j in range(2):
print i + j
0112
0
1
1
2
0
1
0
1
0101
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
17 questions
Legal & Ethical Responsibilities
Quiz
•
9th - 12th Grade
20 questions
Budding Entrepreneurs Activity 1
Quiz
•
9th - 11th Grade
18 questions
Dzień kobiet
Quiz
•
1st Grade - University
19 questions
SEMI 2.03-2.06
Quiz
•
9th - 12th Grade
20 questions
Engineering Documentation
Quiz
•
9th - 10th Grade
23 questions
BTS
Quiz
•
2nd Grade - Professio...
17 questions
Pio XII - Rules and Norms
Quiz
•
6th - 9th Grade
20 questions
Basic Electonics
Quiz
•
5th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
10 questions
Theme
Quiz
•
9th Grade
12 questions
Exponential Growth and Decay
Quiz
•
9th Grade
20 questions
Exponent Rules Review
Quiz
•
8th - 9th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
