What is the primary purpose of an if-else statement?
If Then Else Statements

Interactive Video
•
Computers
•
7th Grade
•
Medium
Raymond Ballard
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
To perform the same action
To repeat actions
To make a decision between two actions
To avoid making decisions
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What happens to Scrat if he finds the acorn?
He moves forward
He continues searching
He turns left
He is happy
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How does the if-else statement help Scrat?
It makes him sad
It helps him find the acorn
It confuses him
It stops him from moving
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the function of an 'else' block in an if-else statement?
It stops the action
It skips the decision
It executes an alternative action
It repeats the action
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What action does Scrat take in the 'else' part of the block?
He moves forward
He finds the acorn
He turns left
He is happy
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What does Scrat do if there is a path ahead?
He keeps searching
He moves forward
He is sad
He turns left
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What does Scrat do if the 'if' condition is met?
He turns left
He is sad
He keeps searching
He moves forward
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Loops & Conditional Blocks in Scratch

Quiz
•
6th - 12th Grade
15 questions
Assesment for Lessons 1-5 Code.org

Quiz
•
5th - 8th Grade
15 questions
Algorithms - GSHS

Quiz
•
7th - 9th Grade
12 questions
App Creator 1.4/1.5

Quiz
•
6th - 9th Grade
15 questions
Programming Essentials Revision

Quiz
•
6th - 8th Grade
12 questions
S1 code.org Assessment

Quiz
•
7th Grade
15 questions
Gaming Lesson 2

Quiz
•
6th - 8th Grade
12 questions
Hour of Code

Quiz
•
6th - 12th Grade
Popular Resources on Quizizz
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade