Introduction to Python - If and Else

Introduction to Python - If and Else

1st - 6th Grade

10 Qs

quiz-placeholder

Similar activities

Ms WORD

Ms WORD

3rd Grade

12 Qs

6 класс Программирование на языке PYTHON

6 класс Программирование на языке PYTHON

1st Grade

10 Qs

Python Quiz-01

Python Quiz-01

6th - 10th Grade

10 Qs

Python

Python

3rd Grade

14 Qs

Intro to Python

Intro to Python

KG - University

10 Qs

Python Variables

Python Variables

6th Grade

10 Qs

Google Docs

Google Docs

3rd - 6th Grade

10 Qs

P.2 Odd Man Out Quiz

P.2 Odd Man Out Quiz

6th Grade

14 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?