
Python Control Structures Flashcard Review - CodeHS Unit 4 Review
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
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
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
15 questions
The Crucible Act 3 Flashcard
Flashcard
•
9th Grade - University
15 questions
English 1 Final Exam Study Flashcard
Flashcard
•
9th Grade - University
10 questions
Texas Revolution warm up review
Flashcard
•
KG - University
15 questions
Slope: Mixed Review
Flashcard
•
KG - University
15 questions
Module D Review (Quantum Model )
Flashcard
•
9th Grade - University
15 questions
How Can I Smell Things From a Distance - Learning Set #2 Review
Flashcard
•
KG - University
15 questions
thursday review
Flashcard
•
9th Grade - University
15 questions
Costandi EOC Biology Exam Review
Flashcard
•
KG - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade