
PYTHON-04
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Riya Shakya
Used 7+ times
FREE Resource
Enhance your content
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which keyword is used to check if a condition is true or false in Python?
a) if
b) else
c) elif
d) while
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What symbol is used to represent equality in a condition statement?
=
==
>
<
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which statement is used to execute a block of code repeatedly as long as a condition is true?
if
for
else
while
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you combine multiple conditions in an if statement?
Using the or operator (|)
Using the and operator (&)
Using the not operator (~)
Using the in operator
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the output of the following code snippet?
x = 10
if x > 5:
print("Greater than 5")
else:
print("Less than or equal to 5")
Greater than 5
Less than or equal to 5
Greater than or equal to 5
Less than 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How many times will the following loop execute?
count = 0
while count < 5:
count += 1
0
4
5
ERROR
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What will be the output of the following code snippet?
x = 5
if x < 10:
print("Less than 10")
elif x < 7:
print("Less than 7")
else:
print("Greater than or equal to 7")
Less than 10
Less than 7
Greater than or equal to 7
No output
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Ch.8 - Introducing Python
Quiz
•
6th Grade - Professio...
30 questions
Programming Q3 Review - Data Structures
Quiz
•
9th Grade - University
22 questions
Python Control Structures (Unit 4 AP CSP)
Quiz
•
10th Grade
20 questions
Digital Imaging and Design C3 -electronic images
Quiz
•
9th Grade - University
22 questions
MIL: TYPES OF MEDIA
Quiz
•
11th - 12th Grade
20 questions
مراجعة عامة على المنهج – الجزء الأول
Quiz
•
10th Grade
20 questions
Python First Steps Homework Quiz
Quiz
•
7th - 9th Grade
20 questions
Python while loops
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
15 questions
MLA Formatting
Quiz
•
9th Grade
20 questions
Typing Practice
Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz
Quiz
•
9th Grade