Python
Quiz
•
Computers
•
8th Grade
•
Medium
Felicia Westbrook
Used 15+ 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
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
Already have an account?
Similar Resources on Wayground
10 questions
Emerging technologies
Quiz
•
6th Grade - University
10 questions
App Development lesson 1
Quiz
•
8th - 9th Grade
10 questions
Microsoft Teams
Quiz
•
KG - 12th Grade
15 questions
Google Tips and Tricks
Quiz
•
7th - 9th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
16 questions
Acceptable Use Policy
Quiz
•
6th - 9th Grade
14 questions
Financial Literacy: 8th Grade
Quiz
•
8th Grade
10 questions
Grade 8
Quiz
•
8th Grade
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
