Search Header Logo

Introduction to Python - If and Else

Authored by Khadeeja Haji

Computers

1st - 6th Grade

Used 23+ times

Introduction to Python - If and 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

45 sec • 1 pt

What does this print?

if 5 > 7:

print("Hello!")

else:

print("Bye")

Hello

Bye

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Is this true or false?

6 > 8

True

False

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does this print?

if 5 == 5:

print("Right")

else:

print("Wrong")

Right

Wrong

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this print?

if 6 != 6:

print("hi")

else:

print("hello")

hello

hi

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False?

7 <= 8

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code output?

x = True

print(not x)

False

True

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does this output?

x = True

y = False

print(x and y)

False

True

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?