If Then Else Statements

If Then Else Statements

Assessment

Flashcard

Computers

7th Grade

Hard

Created by

Quizizz 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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?