Python Boolean and If
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
A variable that can only have two values, True or False.
Back
Boolean
2.
FLASHCARD QUESTION
Front
Which is the correct syntax? Options: has_dog = true, has_dog = True, has_dog = Treu, HAS_DOG = tRue
Back
has_dog = True
3.
FLASHCARD QUESTION
Front
What is syntax?
Back
It's a structure.
4.
FLASHCARD QUESTION
Front
Which passes a Boolean to a String? Options: print "has_dog", str(has_dog), print "has_dog" str, (input)(has_dog)
Back
str(has_dog)
5.
FLASHCARD QUESTION
Front
The choices of an if statement are called: twigs, branches, leaves, trees
Back
branches
6.
FLASHCARD QUESTION
Front
An if statement must evaluate to: True or False
Back
True or False
7.
FLASHCARD QUESTION
Front
This operator means that one value is the same as the other value
Back
==
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
11 questions
Percent Abundance
Flashcard
•
10th - 12th Grade
12 questions
Organic 2 Exam 4 Review
Flashcard
•
KG
13 questions
Arithmetic Sequences
Flashcard
•
9th - 12th Grade
12 questions
Descriptive adjectives for Home and Furniture
Flashcard
•
10th Grade - University
10 questions
Secondary storage
Flashcard
•
9th - 11th Grade
11 questions
7517 05 Structured Programming
Flashcard
•
10th Grade - University
10 questions
Projectile Motion
Flashcard
•
10th - 12th Grade
10 questions
Latin I/Indirect Object
Flashcard
•
9th - 11th 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