Python
Quiz
•
Computers
•
8th Grade
•
Medium
Felicia Westbrook
Used 16+ times
FREE Resource
Enhance your content in a minute
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output of the following code?
15
510
z = x + y5
error
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What does an "if" statement in Python check for?
If the user input is correct
Whether a condition is true
The type of a variable
Whether two numbers are the same
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which keyword is used to check additional conditions after the "if" statement?
elseif
end
elif
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code?
age = 18
if age >= 18:
print("You are an adult.")
else:
print("You are not an adult.")
You are an adult.
You are not an adult.
The program will show an error.
No output.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What type of expression is used in conditional statements to evaluate whether a condition is true or false?
Integer
String
Boolean
Float
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
This allows you to execute a block of code only if a specified condition is true.
if
else
elif
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code if sunny was entered
Take a brolly!
Have a great day
The code would not run
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
13 questions
Lekcja14 7-8
Quiz
•
7th - 8th Grade
10 questions
Revision Quiz 2 - Information Technology
Quiz
•
7th - 8th Grade
10 questions
PENGENALAN PERANGKAT LUNAK PENGOLAH ANGKA
Quiz
•
8th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Microsoft PowerPoint 2016
Quiz
•
8th Grade
16 questions
Python Basics
Quiz
•
KG - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
