if...else statements

if...else statements

6th - 8th Grade

8 Qs

quiz-placeholder

Similar activities

Python Math

Python Math

1st - 12th Grade

10 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

Evolution of Information and Communication Technology

Evolution of Information and Communication Technology

7th Grade

10 Qs

Python list and tuple

Python list and tuple

6th - 8th Grade

10 Qs

Year 8 Python

Year 8 Python

8th Grade

10 Qs

PYTHON (FOR LOOP)

PYTHON (FOR LOOP)

1st - 10th Grade

10 Qs

Lists IN PYTHON!!!!!!!!

Lists IN PYTHON!!!!!!!!

KG - 12th Grade

12 Qs

Python Data Structures

Python Data Structures

8th - 12th Grade

10 Qs

if...else statements

if...else statements

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Used 561+ 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