More Python Conditionals

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

6 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following is the correct way to check if x is even? if x / 2 == 0:, if x / 2 == 0:, if x % 2 == 0:, if x % 2 = 0:
Back
if x % 2 == 0:
2.
FLASHCARD QUESTION
Front
Which of the following is the correct way to check if x is divisible by 10? if x / 10 == 0:, if x // 10 = 0:, if x % 10 == 0:, if x % 10 = 0:
Back
if x % 10 == 0:
3.
FLASHCARD QUESTION
Front
Which of the following is the correct way to check if x and y are both positive? Options: if x and y > 0:, if x, y > 0:, if x > 0 and y > 0:, if x > 0, y > 0:
Back
if x > 0 and y > 0:
4.
FLASHCARD QUESTION
Front
Which of the following is the correct way to check if the variable choice is the string "yes"? Options: if choice == "yes":, if choice == yes:, if choice = "yes":, if choice == yes:
Back
if choice == "yes":
5.
FLASHCARD QUESTION
Front
What is output when the code runs? Options: C, B, A, C, B, C, D, C, B
Back
C, B
6.
FLASHCARD QUESTION
Front
What is output when the code runs? Options: B, A, C, D
Back
B
Similar Resources on Wayground
10 questions
Stoichiometry Review

Flashcard
•
9th - 12th Grade
10 questions
Linear Piecewise Functions

Flashcard
•
9th - 10th Grade
11 questions
Graphing Polynomials

Flashcard
•
10th - 11th Grade
12 questions
Quadratic Functions Practice

Flashcard
•
9th - 11th Grade
11 questions
Algebra 2 2.2 Direct Variation

Flashcard
•
10th - 11th Grade
9 questions
LANEAY - I math 1 chapter 1

Flashcard
•
9th - 12th Grade
10 questions
Absolute Value - Equations, Inequalities, Graphing

Flashcard
•
9th - 12th Grade
10 questions
Systems of Inequalities- Remediation

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