More Python Conditionals

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz 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
6 questions
Flashcard - Graphing Linear Inequalities

Flashcard
•
10th Grade
10 questions
Pythagorean Theorem

Flashcard
•
9th - 12th Grade
10 questions
Domain and Range Review

Flashcard
•
9th - 12th Grade
10 questions
Systems of Inequalities & Linear Programming

Flashcard
•
9th - 11th Grade
10 questions
Absolute Value Equations and Inequalities

Flashcard
•
9th - 12th Grade
11 questions
A2 2-2 Direct Variation

Flashcard
•
9th - 12th Grade
9 questions
Translations

Flashcard
•
9th - 12th Grade
9 questions
Linear Inequalities

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade