if...else statements

if...else statements

6th - 8th Grade

8 Qs

quiz-placeholder

Similar activities

Python If ..else

Python If ..else

6th Grade

6 Qs

Using Indexes in Python Lists

Using Indexes in Python Lists

8th Grade

10 Qs

Python3

Python3

4th Grade - University

10 Qs

9.3 L3 Python Lists

9.3 L3 Python Lists

7th - 10th Grade

10 Qs

why python

why python

6th - 8th Grade

11 Qs

Variables 01

Variables 01

8th Grade

10 Qs

Conditional Statements Grade 8

Conditional Statements Grade 8

8th - 9th Grade

10 Qs

Python Lists

Python Lists

8th - 9th Grade

10 Qs

if...else statements

if...else statements

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Used 537+ times

FREE Resource

8 questions

Show all answers

1.

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"

2.

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

3.

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

4.

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

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is my result?
john = 8                                                                        .
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 = 6                                                                        .
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

45 sec • 1 pt

What is my result?
john = 6                                                                        .
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

8.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is my result?
john = 3                                                                        .
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