python IF part1

python IF part1

9th Grade

14 Qs

quiz-placeholder

Similar activities

If-Else Statements

If-Else Statements

9th Grade

10 Qs

Python Basics

Python Basics

9th - 12th Grade

14 Qs

JavaScript Knowledge & Skills

JavaScript Knowledge & Skills

9th - 12th Grade

15 Qs

Subroutines

Subroutines

9th - 11th Grade

16 Qs

python

python

9th Grade

13 Qs

Certification Review 5/19/22

Certification Review 5/19/22

9th - 12th Grade

16 Qs

If ... else

If ... else

4th Grade - University

15 Qs

Python Lists

Python Lists

9th - 12th Grade

15 Qs

python IF part1

python IF part1

Assessment

Quiz

Computers

9th Grade

Medium

Created by

حامد سلوع

Used 18+ times

FREE Resource

14 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

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"

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 = 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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output?

more than 7

more than 23

spam

7

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?