If Then Else Statements

If Then Else Statements

7th Grade

10 Qs

quiz-placeholder

Similar activities

PS code.org Assessment

PS code.org Assessment

7th Grade

10 Qs

Programming - Selection in an Algorithm

Programming - Selection in an Algorithm

1st - 11th Grade

10 Qs

Scratch Basics

Scratch Basics

5th - 8th Grade

12 Qs

Selection and Condition in Programming

Selection and Condition in Programming

1st - 11th Grade

10 Qs

scratch

scratch

7th Grade

15 Qs

Hari 3 - Kuis Coding & Perkenalan AI

Hari 3 - Kuis Coding & Perkenalan AI

7th - 12th Grade

10 Qs

Scratch Loops and patterns

Scratch Loops and patterns

7th - 9th Grade

16 Qs

Code.org  Review

Code.org Review

5th - 10th Grade

16 Qs

If Then Else Statements

If Then Else Statements

Assessment

Interactive Video

Computers

7th Grade

Medium

Created by

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

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?