Understanding If Statements

Understanding If Statements

Assessment

Interactive Video

Computers

6th - 7th Grade

Hard

Created by

Jennifer Brown

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary function of an if statement in programming?

To execute commands only if a certain condition is met

To define a new function

To repeat a block of code multiple times

To declare variables

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the challenge with the goat, monkey, and banana, what action is taken if the banana is not frozen?

The goat goes to the banana and hits it

The monkey says 'yum'

The goat and monkey both ignore the banana

The program skips to 'go to banana'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the goat in the challenge when the banana is frozen?

The goat waits for the monkey

The goat eats the banana

The goat goes to the banana and hits it

The goat ignores the banana

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the advanced challenge, what determines whether the goat interacts with a banana?

The color of the banana

The size of the banana

Whether the banana is frozen

The position of the banana

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if a banana is not frozen in the advanced challenge?

The monkey goes directly to the banana

The goat and monkey both go to the banana

The goat hits the banana

The banana is ignored