2.4 IF, THEN, ELSE

Quiz
•
Computers
•
9th Grade
•
Hard
Mr Mayer
Used 38+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What's the name of the variable in this code?
if
Weather
weather
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
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
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
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
Similar Resources on Wayground
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
14 questions
For Loops (Java)

Quiz
•
9th - 12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
12 questions
Python Programming - Iteration

Quiz
•
9th Grade
15 questions
Scratch Programming

Quiz
•
5th - 9th Grade
13 questions
String Manipulation

Quiz
•
9th - 11th Grade
15 questions
CodeHS - Intro to Python - Conditionals Quiz

Quiz
•
9th Grade - Professio...
13 questions
Y9 Homework 1: Python Revisited 1

Quiz
•
9th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade
14 questions
Points, Lines, Planes

Quiz
•
9th Grade