Search Header Logo

Python if else

Authored by CodeLQ Team

Computers

4th - 9th Grade

Used 40+ times

Python if else
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What best defines an IF statement in python?

Is an embedded string with a variable
An IF statement checks to see if a statement is true or false and then does one of two things depending on the result.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is the same as the other value

==
!=
>
<

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

There can be an else statement without an if statement

FALSE

TRUE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ‘else’ statement is optional in Python

TRUE

FALSE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is not equal to another value

==
<=
>=
!=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of this program:

Friday = False

if Friday:

print "Jeans day!"

else:

print "Uniform day"

Jeans day

Today is Friday

Uniform day

Not Friday

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

True

False

condition1

condition2

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?