Python Boolean and If

Flashcard
•
Computers
•
9th - 12th Grade
•
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
==
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Fingerprint ID Practice

Flashcard
•
9th - 12th Grade
10 questions
Iteration Practice

Flashcard
•
9th - 12th Grade
10 questions
Cartoon Network: Trivia Tuesday

Flashcard
•
KG - Professional Dev...
10 questions
Arrays

Flashcard
•
10th - 12th Grade
13 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Flashcard
•
9th - 12th Grade
10 questions
Review PHP Programming 1

Flashcard
•
9th - 12th Grade
9 questions
CIvics Questions #41-50

Flashcard
•
9th - 12th Grade
11 questions
Monotype/Printmaking Flashcard

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade