Search Header Logo
Understanding If-Else Statements with Scrat the Squirrel

Understanding If-Else Statements with Scrat the Squirrel

Assessment

Interactive Video

Computers, Education, Instructional Technology

3rd - 5th Grade

Practice Problem

Hard

Created by

Emma Peterson

FREE Resource

The video tutorial introduces the concept of if-else statements using Scrat the squirrel as an example. It explains how if-else statements allow for decision-making between two actions. The tutorial demonstrates how to use if-else blocks to make Scrat move forward if there's a path or turn left if there isn't. It also covers how if-else blocks can be nested within repeat blocks to perform repeated actions based on conditions. The video concludes by encouraging viewers to help Scrat find the acorn.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an if-else statement?

To repeat an action multiple times

To make a decision between two actions

To stop the program

To perform a single action

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example with Scrat, what happens if he finds the acorn?

He keeps searching

He moves backward

He is happy

He turns left

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What additional part does the if-else block have compared to the if block?

A 'stop' section

A 'repeat' section

A 'do' section

An 'else' section

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What action does Scrat take if there is no path ahead?

He stops

He turns right

He turns left

He moves forward

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can if-else blocks be used inside repeat blocks?

No

Only with special conditions

Only in some cases

Yes

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?