Python: Condition
Quiz
•
Education
•
8th Grade
•
Practice Problem
•
Medium
Zh L
Used 6+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
If condition will never be fulfil
print cannot be use multiple times
age is always lesser or equals to 18
Printing conflicting statement,, should have an else statement
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
age 18 should already be an adult
no if statement, compile error SyntaxError
missing elif statement
invalid print statement within else condition
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
SyntaxError, missing " : " at if statement condition
should be elif instead of else
missing condition after else
age is an invalid variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
score should be 100 instead of 20
print statement is not a valid function
NameError, age is not definied
age will never be more than or equals to score
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
missing else condition
should use elif instead of else
SyntaxError, we are not allows to use and operator
Logical error, condition "sale > 20 and sale < 20" will never be fulfilled
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
SyntaxError, invalid condition
NameError, variable sale is not defined
Logical error, sale will never be more than 20
Logical error. condition "sale >= 20 or sale <= 20" will always fulfilled
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
LogicalError,
If temperature is 36, it means that there is a heatwave!
SyntaxError,
Cannot use assignment(=) operator in the if condition
NameError, temperature is using the wrong data type
LogicalError,
else condition might not means that it is good weather
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
9 questions
"Recapping" Our Trip to the Arvin Center
Quiz
•
8th Grade
10 questions
POLICE CAUTION
Quiz
•
7th - 12th Grade
12 questions
SEÑALES DE TRÁNSITO COLOMBIA
Quiz
•
1st Grade - Professio...
10 questions
Elements of Thought
Quiz
•
7th Grade - Professio...
11 questions
Body Paragraph Review
Quiz
•
6th - 9th Grade
10 questions
GREEN TECHNOLOGY
Quiz
•
6th - 12th Grade
10 questions
Python
Quiz
•
1st - 12th Grade
11 questions
A Deep Study of Character Unit Test
Quiz
•
6th - 8th Grade
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
Discover more resources for Education
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
