NEW
Font size
WorksheetsPython Making Decision
Total questions: 9
Worksheet time: 5mins
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
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
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
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
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
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
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
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
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
