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
What is the primary purpose of an if-else statement?
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 Wayground
15 questions
Microbit 1

Quiz
•
6th - 8th Grade
11 questions
Snap! Basics

Quiz
•
7th Grade
12 questions
S1 code.org Knowledge Check 1

Quiz
•
7th Grade
12 questions
PS Code.org Knowledge Check 1

Quiz
•
7th Grade
12 questions
PS Code.org Knowledge Check 1

Quiz
•
7th Grade
10 questions
Programming - Iteration, Basic Programming Constructs & Loop

Quiz
•
2nd - 12th Grade
10 questions
Express Course Lessons 1-3 Review

Quiz
•
6th - 7th Grade
16 questions
Intro to CS Unit 3

Quiz
•
7th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade