8_3 Python If Statements

8_3 Python If Statements

7th - 10th Grade

19 Qs

quiz-placeholder

Similar activities

Lessons11 - 15 CSA

Lessons11 - 15 CSA

10th - 12th Grade

19 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

AMSI Python Quiz

AMSI Python Quiz

9th - 12th Grade

21 Qs

COSC 1 Final

COSC 1 Final

9th - 10th Grade

15 Qs

Python Basics

Python Basics

7th - 9th Grade

23 Qs

Java if Statements

Java if Statements

9th - 12th Grade

20 Qs

Python Programming

Python Programming

5th Grade - University

15 Qs

Conditionals

Conditionals

9th - 12th Grade

18 Qs

8_3 Python If Statements

8_3 Python If Statements

Assessment

Quiz

Computers

7th - 10th Grade

Hard

Created by

SMA Computing

Used 16+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is the same as the other value
==
!=
>
<

2.

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

Error

Uniform day

Not Friday

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which is correct?

A

B

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is my result?
mickey = mouse                                   .
if mickey == mouse:                           .
.            print("Mickey is a mouse")
.else:                                                             .
.         print("Minnie rules")        .
"Mickey is a mouse"
"Minnie rules"
Nothing prints.
"Mickey is a mouse" & "Minnie rules"

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is my result?
john = 5                                                                        .
if john > 6:                                                                  .
.            print("John is getting ice cream")
else:                                                                               .
.               print("John is getting apple juice")
print("John is getting grapes")                    .
John is getting ice cream
John is getting grapes
John is getting apple juice
John is getting grapes
John is getting apple juice
John is getting ice cream

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is my result?
john = 10                                                                     .
if john > 6:                                                                  .
.            print("John is getting ice cream")
else:                                                                               .
.               print("John is getting apple juice")
print("John is getting grapes")                    .
John is getting ice cream
John is getting grapes
John is getting apple juice
John is getting grapes
John is getting apple juice
John is getting ice cream

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is the same as the other value
==
!=
>
<

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?