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
9 questions
4.4 Types of programming language

Flashcard
•
9th - 12th Grade
9 questions
Dictionary Flashcard

Flashcard
•
12th Grade
10 questions
Paper Practice 2

Flashcard
•
9th - 12th Grade
10 questions
1.1 Points lines and planes

Flashcard
•
9th - 12th Grade
8 questions
Active and Passive Voice Formative

Flashcard
•
9th - 12th Grade
11 questions
Disney Trivia!!

Flashcard
•
KG
11 questions
Practice

Flashcard
•
KG - University
7 questions
R093 Creative iMedia TA1 (The media industry)

Flashcard
•
9th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade