
Code HS Unit 4 Review
Authored by Kelley Camp
Computers
11th - 12th Grade
Used 323+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
About
This quiz comprehensively covers fundamental programming concepts in Python, specifically focusing on boolean logic, conditional statements, loops, and control structures. The content is appropriate for grades 11-12 and aligns with an introductory computer science curriculum. Students need a solid understanding of boolean data types and their valid values (True/False), boolean operators (and, or, not) and their symbols in Python, comparison operators for equality and inequality, and the logical evaluation of complex boolean expressions. The quiz also tests knowledge of conditional statements using if/else structures, loop constructs including for and while loops, loop control statements like break and continue, constants and their purpose in programming, random number generation, and code tracing to determine program output. Students must demonstrate computational thinking skills by analyzing code segments, predicting outcomes, and understanding how different programming constructs affect program flow and behavior. Created by Kelley Camp, a Computers teacher in the US who teaches grades 11 and 12. This comprehensive review quiz serves as an excellent tool for formative assessment, allowing students to demonstrate their mastery of Unit 4 concepts before moving forward in the curriculum. Teachers can deploy this quiz as a pre-test to gauge student readiness, as guided practice during instruction, or as homework to reinforce classroom learning. The variety of question types—from basic concept identification to complex code analysis—makes it particularly valuable for differentiated instruction and identifying areas where students need additional support. The quiz effectively supports preparation for AP Computer Science Principles assessments, as evidenced by questions that mirror AP-style formatting and pseudocode conventions. This aligns with standards such as AP CSP Learning Objectives AAP-2.B (expressing algorithmic instructions using conditional statements), AAP-2.K (using Boolean expressions in programming), and AAP-2.L (implementing iteration in programs).
Content View
Student View
37 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid value for a boolean?
True
False
yes
All are valid
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
After the following code runs, what is the value of is_weekend?
True
False
"is_weekend"
"is_saturday || is_sunday"
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What symbol represents the and operator in Python?
AND
and
&
&&
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What symbol represents the or operator in Python?
OR
or
|
| |
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When using "and" as a Boolean operator, what must happen for the phrase to be True?
All conditions must be True
Just one condition must be True
No conditions are True
None of the choices are correct
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the proper way to compare if two values are equal in a boolean expression in Python?
=
==
EQUALS
is
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the proper operator for “not equals” in Python?
=!
!=
~=
NOT EQUALS
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?