Aria, Ava, and Mia are developing a weather app. In their weather app, what would be the purpose of using an if statement?
If-Statements

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Rashad Davis
Used 26+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To decide whether to display 'Sunny', 'Rainy', or 'Cloudy' based on the weather data
To display the highest temperature of the day
To count the number of times the app has been opened
To change the background color of the app
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the if statement in the code do when the count reaches 20?
Display a message
Reset the count to 0
Set the screen to "gameOverScreen"
Set the screen to "gamePlayScreen"
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What should be added to the down arrow event handler to set the screen to game over when it reaches -5?
If count is equal to -5, then set the screen to "gameOverScreen"
If count is equal to 20, then set the screen to "gamePlayScreen"
If count is equal to -5, then set the screen to "gamePlayScreen"
If count is equal to 10, then set the screen to "gameOverScreen"
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What happens when the if statement is triggered by clicking the up arrow 20 times?
The screen changes to "gamePlayScreen"
The final score is displayed
The count is reset to 0
The screen changes to "gameOverScreen"
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the value of count when the if statement for the up arrow button is triggered?
15
10
20
25
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the value of count when the if statement for the down arrow button is triggered?
-15
-10
-5
0
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the event handler for the up arrow button?
onEvent("leftButton", "click", function() {
onEvent("rightButton", "click", function() {
onEvent("downButton", "click", function() {
onEvent("upButton", "click", function() {
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
code.org CSP Unit 3 Review 20-21

Quiz
•
9th - 12th Grade
15 questions
Computer DESKTOP - CESA

Quiz
•
7th Grade - University
15 questions
Code.org Quiz2

Quiz
•
7th Grade - University
15 questions
Google Docs

Quiz
•
9th Grade
15 questions
Basic Microsoft Word

Quiz
•
1st Grade - Professio...
15 questions
Y7 Digital Literacy Final QUIZ

Quiz
•
12th Grade
15 questions
App Lab

Quiz
•
6th - 9th Grade
15 questions
Google Sheets Review 1

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University