Python: Condition

Quiz
•
Education
•
8th Grade
•
Medium
Zh L
Used 5+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
SyntaxError,
Missing elif statement
NameError,
temperature should be named as temp instead
LogicalError,
The temperate is above 20 degree will always be printed
NameError,
Temperature is spelled wrongly in the last print statement
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the issue with the following code?
NameError,
True is a reserved word and cannot be use
SyntaxError,
If statement requires a condition rather than True
LogicalError,
Last print statement will always be printed
LogicalError,
The else statement will never be printed
Similar Resources on Wayground
6 questions
EL TEST DE LA HUMILDAD.

Quiz
•
1st - 12th Grade
10 questions
Multiple Intelligences

Quiz
•
KG - 12th Grade
10 questions
For loop

Quiz
•
8th - 9th Grade
10 questions
Test de Autoestima en adolescentes

Quiz
•
6th - 8th Grade
11 questions
Normas de convivencia

Quiz
•
2nd Grade - University
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
6 questions
l'alfabeto italiano

Quiz
•
1st - 12th Grade
13 questions
Estadísticas

Quiz
•
6th - 8th Grade
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
Discover more resources for Education
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review

Quiz
•
8th Grade
18 questions
Identifying Functions Practice

Quiz
•
8th Grade
20 questions
Scientific method and variables

Quiz
•
8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade