What is the output?
x = 9 % 2
if (x == 1):
print ("ONE")
else:
print ("TWO")
3.4 Lesson Practice
Quiz
•
Other
•
9th - 12th Grade
•
Hard
Charlie Batchelor
Used 22+ times
FREE Resource
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
x = 9 % 2
if (x == 1):
print ("ONE")
else:
print ("TWO")
ONE
one
One
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For questions 2-4, consider the following code:
if (month ==9):
if (day > 15):
print ("Second half of the month")
else:
print ("First half of the month")
else:
print ("Not in September")
Nothing is output
First half of the month
Second half of the month
Not in September
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output if month = 11 day = 14?
Nothing is output
First half of the month
Second half of the month
Not in September
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output if month = 9 day = 21?
Nothing is output
First half of the month
Second half of the month
Not in September
8 questions
Georgia Trivia
Quiz
•
9th Grade - University
9 questions
Inflation
Quiz
•
11th - 12th Grade
8 questions
Mid Autumn Festival
Quiz
•
5th Grade - University
8 questions
Programlama Temelleri-Python
Quiz
•
8th - 11th Grade
8 questions
PF 9-3 Lesson
Quiz
•
9th - 12th Grade
7 questions
All about Saudi Arabia
Quiz
•
KG - 12th Grade
8 questions
Komputer Akuntansi
Quiz
•
11th Grade
9 questions
quiz - 7(exceptions and file handling)
Quiz
•
12th Grade - University
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade