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
12 questions
Spike Prime Coding Blocks

Quiz
•
6th - 8th Grade
10 questions
PS code.org Assessment

Quiz
•
7th Grade
16 questions
Scratch Loops and patterns

Quiz
•
7th - 9th Grade
16 questions
Scratch Coding Basic Vocabulary

Quiz
•
6th - 8th Grade
10 questions
Scratch Quiz

Quiz
•
KG - 8th Grade
15 questions
Assesment for Lessons 1-5 Code.org

Quiz
•
5th - 8th Grade
10 questions
3.4 Microbit RETRIEVAL PRACTICE

Quiz
•
6th - 9th Grade
10 questions
Loops & Conditional Blocks in Scratch

Quiz
•
6th - 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
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
20 questions
Math Review

Quiz
•
7th Grade
14 questions
Subtracting Integers

Lesson
•
6th - 8th Grade
15 questions
Exponent Properties

Quiz
•
7th - 9th Grade