
Python Control Structures Flashcard Review - CodeHS Unit 4 Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

17 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following Boolean expressions is equivalent to the expression? a AND (b OR c)
Back
(a AND b) OR (a AND c)
2.
FLASHCARD QUESTION
Front
What is the value of the boolean variable can_graduate at the end of this program? earned_credits = 120 no_fees_owed = True can_graduate = earned_credits >= 115 and no_fees_owed = True
Back
True
3.
FLASHCARD QUESTION
Front
What is the last thing printed by the following program?
start = 24
stop = 9
for i in range (start, stop -1, -3):
if i % 3 == 0:
print(i *2)
else:
print(i)
Back
18
4.
FLASHCARD QUESTION
Front
How many times will the following program print "Call me asparagus."?
```python
i = 0
while i < 10:
print("Call me asparagus.")
```
Back
This program will loop infinitely.
5.
FLASHCARD QUESTION
Front
What will be the output of this program?
number = 9
greater_than_zero = number > 0
if greater_than_zero:
if number > 5:
print(number)
Back
9
6.
FLASHCARD QUESTION
Front
What does the expression (12 != 8 AND 19 < 6) OR 68 < 5 evaluate to?
Back
false
7.
FLASHCARD QUESTION
Front
What is printed by the following program?
is_snowing = True
is_windy = True
is_blizzard = is_snowing AND is_windy
is_winter = False
is_cold = is_snowing or is_winter
print("Is it cold: " + str(is_cold))
Back
Is it cold: True
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Final Exam 2024(Reg)
Flashcard
•
10th Grade - University
8 questions
All Things Print!
Flashcard
•
KG - University
12 questions
Like to vs Would like to - course 6 (2H)
Flashcard
•
9th - 12th Grade
13 questions
Upper 2: Passive voice
Flashcard
•
9th - 12th Grade
15 questions
FREQUENCY ADVERBS
Flashcard
•
KG
15 questions
Thanksgiving Trivia Function Review
Flashcard
•
9th Grade - University
8 questions
File Type Extensions
Flashcard
•
8th Grade - University
15 questions
Understanding SMART Goals Components
Flashcard
•
8th Grade - University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Six Weeks Test 2 Review
Lesson
•
9th - 12th Grade
12 questions
Overview of Mexico Part 1
Lesson
•
9th - 12th Grade
16 questions
Lesson 3.5 - If Structures Practice
Quiz
•
11th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade