Python: Condition

Python: Condition

8th Grade

9 Qs

quiz-placeholder

Similar activities

HISTORICAL CONCEPTS

HISTORICAL CONCEPTS

8th Grade

11 Qs

Claim, Evidence, Reasoning

Claim, Evidence, Reasoning

8th - 10th Grade

12 Qs

PowerPoint Lesson 1 Semester Exam

PowerPoint Lesson 1 Semester Exam

7th - 8th Grade

9 Qs

EVALUACIÓN CDES-4°

EVALUACIÓN CDES-4°

1st - 12th Grade

10 Qs

Augmented Reality 2

Augmented Reality 2

8th Grade

10 Qs

Grade 7 EIM Hazards and Risks

Grade 7 EIM Hazards and Risks

KG - 12th Grade

10 Qs

TLE

TLE

7th - 8th Grade

10 Qs

Fabric from Fibre

Fabric from Fibre

5th - 10th Grade

10 Qs

Python: Condition

Python: Condition

Assessment

Quiz

Education

8th Grade

Practice Problem

Medium

Created by

Zh L

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?