Introduction to Python - If and Else

Introduction to Python - If and Else

1st - 6th Grade

10 Qs

quiz-placeholder

Similar activities

Python If

Python If

6th Grade

11 Qs

Calculations in MSW LOGO

Calculations in MSW LOGO

4th Grade

15 Qs

Output devices

Output devices

2nd Grade

10 Qs

Đề ôn tập datatype python(P1)

Đề ôn tập datatype python(P1)

6th - 8th Grade

10 Qs

Algorithms

Algorithms

2nd - 6th Grade

11 Qs

Python Basics

Python Basics

1st Grade

12 Qs

Grade 3 ICT Parts of computer and Hardware &Software

Grade 3 ICT Parts of computer and Hardware &Software

3rd Grade

12 Qs

KUIZ PYTHON

KUIZ PYTHON

1st - 5th 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 23+ 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?