Introduction to Python - If and Else

Introduction to Python - If and Else

1st - 6th Grade

10 Qs

quiz-placeholder

Similar activities

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Python variables

Python variables

6th - 8th Grade

8 Qs

Python - Operators and Conditional Statement

Python - Operators and Conditional Statement

3rd - 10th Grade

10 Qs

Chapter 1: Data Science

Chapter 1: Data Science

4th Grade

13 Qs

Algorithms

Algorithms

2nd - 6th Grade

11 Qs

Yr 7 Flowgorithm

Yr 7 Flowgorithm

3rd Grade

10 Qs

Python Quiz

Python Quiz

3rd - 4th Grade

15 Qs

Calculations in MSW LOGO

Calculations in MSW LOGO

4th Grade

15 Qs

Introduction to Python - If and Else

Introduction to Python - If and Else

Assessment

Quiz

Computers

1st - 6th Grade

Easy

Created by

Khadeeja Haji

Used 21+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?