2.4 IF, THEN, ELSE

2.4 IF, THEN, ELSE

9th Grade

10 Qs

quiz-placeholder

Similar activities

Conditional Statements Grade 8

Conditional Statements Grade 8

8th - 9th Grade

10 Qs

Python programming -recap

Python programming -recap

7th - 10th Grade

12 Qs

Python Programming - Iteration

Python Programming - Iteration

9th Grade

12 Qs

Scratch Programming

Scratch Programming

5th - 9th Grade

15 Qs

Iteration

Iteration

9th - 12th Grade

15 Qs

Python Input/Output

Python Input/Output

9th - 12th Grade

10 Qs

For Loops (Java)

For Loops (Java)

9th - 12th Grade

14 Qs

CodeHS Python Unit 4 Quiz

CodeHS Python Unit 4 Quiz

9th - 12th 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?