
Edhesive Python Unit 4: Test Review
Authored by Debra Haghighat
Computers
10th - 11th Grade
Used 201+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
About
This quiz focuses on Python programming fundamentals, specifically covering loop structures and control variables at the high school level, appropriate for grades 10-11. The questions assess students' understanding of while loops, including their purpose, termination conditions, and practical implementation. Students need to grasp core concepts such as loop control variables, initialization values, increment/decrement operations, and the relationship between test conditions and loop execution. The quiz progresses from basic conceptual understanding to practical code writing and trace-through exercises, requiring students to predict output by mentally executing loop iterations and understanding how variable modifications affect program flow. Created by Debra Haghighat, a Computers teacher in the US who teaches grades 10 and 11. This quiz serves as an excellent review tool for students preparing for assessments on Python loops, and can be effectively used as a formative assessment to gauge student readiness before a unit test. Teachers can deploy this quiz for homework assignments to reinforce classroom learning, as a warm-up activity to activate prior knowledge, or during review sessions to identify areas needing additional instruction. The mix of conceptual questions and practical coding exercises makes it valuable for both guided practice and independent study, helping students solidify their understanding of fundamental programming constructs. This assessment aligns with computer science standards such as CSTA 3A-AP-13 and 3A-AP-14, which focus on creating programs that use control structures and variables.
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a loop used for?
To repeat a function
Test if a condition false
To repeat code.
Help write python questions
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A While Loop runs until
To repeat code.
The test condition is false____
_The test condition is true____
To set the value of a variable before a loop
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Loop control variable
Variable used to end the loop.
Variable used to count how many times something happens.
To set the value of a variable before a loop.
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are the two ways of ending a loop?
User input
elif
count done
Count variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a loop to print the numbers: 1, 2, 3, …20
c = 1 while (c <= 21): print (c) (c = c + 1 )
c = 0 while (c <= 21): print (c) c = c + 1
c = 1 while (c <= 21): print (c) c = c + 1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a loop to print the numbers: 30, 31, 32, ….45. What did you have to do to c to get this one to work?
c = 29 while (c <= 45): print (c) c = c + 1
c = 30 while (c <= 45): print (c) c = c + 1
c = 30 while (c <= 45): print (c) ( c and c + 1 )
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write a loop to print the numbers: 5, 10, 15, 20...45. What did you have to do to c to get this one to work?
c = 45 while (c <= 45): print (c) c = c + 5
c = 0 while (c <= 45): print (c) c = c + 5
c = 5 while (c <= 45): print (c) c = c + 5
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?