If Then Else Statements

If Then Else Statements

Assessment

Flashcard

Computers

7th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the primary purpose of an if-else statement?

Back

To make a decision between two actions

2.

FLASHCARD QUESTION

Front

What happens to Scrat if he finds the acorn?

Back

He is happy.

3.

FLASHCARD QUESTION

Front

How does the if-else statement help Scrat?

Back

It helps him find the acorn

4.

FLASHCARD QUESTION

Front

What is the function of an 'else' block in an if-else statement?

Back

It executes an alternative action.

5.

FLASHCARD QUESTION

Front

What action does Scrat take in the 'else' part of the block?

Back

He turns left

6.

FLASHCARD QUESTION

Front

What does Scrat do if there is a path ahead?

Back

He moves forward

7.

FLASHCARD QUESTION

Front

What does Scrat do if the 'if' condition is met?

Back

He moves forward

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?

Discover more resources for Computers