
Python Logic Pop Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Rokiah Jamil
Used 2+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
What does this code output?
if 10 > 5:
print("Yes")
Yes
No
Error
True
2.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
For a 3-option if statement, what keyword is used to check a second condition after an if?
also
elseif
elif
else
3.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
What will this code print?
score = 45
if score >= 50:
print("Pass")
else:
print("Fail")
Pass
Fail
Error
Nothing
4.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
True or False:
== is used to assign values.
True
False
5.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Which of the following is a Boolean value in Python?
"True"
1
True
true
6.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
What does else do in a conditional statement?
Checks another condition
Ends the program
Runs when all other if/elif are False
Loops the condition
7.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Which statement is NOT correct in Python logic?
if age >= 18:
else:
elif age < 10:
elseif age < 10:
8.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
What is the correct syntax to check if x is greater than 5?
if x > 5:
if x gt 5
if x => 5:
if (x more 5):
Similar Resources on Wayground
10 questions
C Programming
Quiz
•
Professional Development
9 questions
HTML Basics
Quiz
•
9th Grade - Professio...
10 questions
Kiểu kí tự
Quiz
•
Professional Development
10 questions
Python-Quiz-Basic-Datatypes
Quiz
•
12th Grade - Professi...
10 questions
ER Model
Quiz
•
Professional Development
10 questions
C Programming
Quiz
•
Professional Development
10 questions
SQL
Quiz
•
Professional Development
10 questions
CodeTigers Python 101
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
