
Python Logic Pop Quiz

Quiz
•
Computers
•
Professional Development
•
Medium
Rokiah Jamil
Used 2+ times
FREE Resource
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
A+ Core 1 Printer Troubleshooting

Quiz
•
University - Professi...
12 questions
Sentencias de Decisión en Python

Quiz
•
Professional Development
10 questions
HTML Introduction

Quiz
•
3rd Grade - Professio...
10 questions
Python Competition

Quiz
•
Professional Development
10 questions
MS Word Pretest - DTC

Quiz
•
Professional Development
8 questions
Infosys-4

Quiz
•
Professional Development
10 questions
FP2: 02 - STRINGS

Quiz
•
Professional Development
10 questions
Python Basics

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade