Search Header Logo

CMU Python 4.1 If Statements

Authored by Brenda Larson

Computers

9th - 12th Grade

11 Questions

Used 32+ times

CMU Python 4.1 If Statements
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If the mouseX is clicked at 300, what color is the chameleon?

blueViolet

gradient('blueViolet', 'limeGreen')

limeGreen

rainbow

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What statement will go into the label?

John is getting ice cream

John is getting apple juice

John is getting baby formula

John is getting nothing

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What statement will go into the label?

John is getting ice cream

John is getting apple juice

John is getting baby formula

John is getting nothing

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The ‘else’ statement is optional in Python

TRUE

FALSE

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

There can be an else statement without an if statement

TRUE

FALSE

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many "else" statements can you pair with a single "if" statement

1

<10

<20

As many as is needed.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these is used in Python to add a third, fourth, etc outcome to a scenario?

elif

else if

iff

elsa

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?