2.4 IF, THEN, ELSE

2.4 IF, THEN, ELSE

9th Grade

10 Qs

quiz-placeholder

Similar activities

Python Variables

Python Variables

7th - 12th Grade

10 Qs

for---Loop

for---Loop

3rd Grade - University

13 Qs

AP CSP Loops Practice

AP CSP Loops Practice

9th - 12th Grade

12 Qs

ICT Java programming workshop

ICT Java programming workshop

9th Grade

10 Qs

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

Python Introduction Quiz

Python Introduction Quiz

8th - 9th Grade

12 Qs

CodeHS - Intro to Python - Conditionals Quiz

CodeHS - Intro to Python - Conditionals Quiz

9th Grade - Professional Development

15 Qs

Conditional Statements

Conditional Statements

9th Grade

15 Qs

2.4 IF, THEN, ELSE

2.4 IF, THEN, ELSE

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Mr Mayer

Used 38+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What's the name of the variable in this code?

if

print

Weather

weather

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the weather variable store?

Sun

the answer to the question "What's the weather like outside?"

Rain

weather

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will happen if the answer "rain" is stored in weather?

program will print "take suncream"

Nothing, it's not an option

program will print "take an umbrella"

Don't take an umbrella

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will happen if the answer "sun" is stored in weather?

program will print "take suncream"

Nothing, it's not an option

program will print "take an umbrella"

Don't take an umbrella

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will happen if the answer "rain" is stored in weather?

program will print "take suncream"

Nothing, it's not an option

program will print "take an umbrella"

Don't take an umbrella

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at this code. What will happen if the user types "sun" into the program?

It will print "You don't need an umbrella"

It will print "You need an umbrella"

It will print you need sun glasses

It will print don't wear a hat

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at this code. What will happen if the user types "rain" into the program?

It will print "You don't need an umbrella"

It will print "You need an umbrella"

It will print "Take an umbrella

It will print don't wear a hat

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?