Understanding If-Then-Else Blocks in Scratch

Understanding If-Then-Else Blocks in Scratch

Assessment

Interactive Video

Computers

5th - 8th Grade

Hard

Created by

Sophia Harris

FREE Resource

The video tutorial explains the if-then-else block in Scratch, focusing on how it executes different code based on a boolean condition. Boolean blocks, which are hexagon-shaped, determine whether the condition is true or false. A practical example is provided using a cat sprite, where the sprite says 'hello' if the mouse pointer is touching it, and 'goodbye' otherwise. The tutorial concludes with a resource for further learning about Scratch programming.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the if-then-else block do in the control category?

Runs code if a condition is true and skips if false

Runs some code if a condition is true and other code if false

Runs code continuously

Stops the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What shape are boolean blocks in Scratch?

Square

Circle

Hexagon

Triangle

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the boolean block is true when the if-then-else block runs?

The code inside both parts of the block runs

The code inside the bottom part of the block runs

The code inside the top part of the block runs

The program stops

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the cat sprite say if the mouse pointer is touching it when the space key is pressed?

Goodbye

Nothing

Hello

Welcome

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of block is the 'touching mouse pointer' block?

Looks block

Control block

Boolean block

Motion block

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the mouse pointer is not touching the cat sprite when the space key is pressed?

The cat sprite says hello

The cat sprite says goodbye

The cat sprite moves

Nothing happens

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where can you find more resources to learn Scratch programming?

code.org

khanacademy.org

inventwithscratch.com

scratch.mit.edu