0% found this document useful (0 votes)
2 views

Loops Excercise

The document provides a series of questions and answers related to Scratch programming blocks, specifically focusing on loop blocks such as 'Repeat [ ] times', 'Forever', and 'Repeat Until'. It explains the functionality of each block and when to use them for specific actions, like repeating actions a set number of times or continuously until a condition is met. The answers clarify the differences between these blocks and their appropriate applications in programming a sprite's behavior.

Uploaded by

bhargavi4gothe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Loops Excercise

The document provides a series of questions and answers related to Scratch programming blocks, specifically focusing on loop blocks such as 'Repeat [ ] times', 'Forever', and 'Repeat Until'. It explains the functionality of each block and when to use them for specific actions, like repeating actions a set number of times or continuously until a condition is met. The answers clarify the differences between these blocks and their appropriate applications in programming a sprite's behavior.

Uploaded by

bhargavi4gothe
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

1. What does the "Repeat [ ] times" block do in Scratch?

A) It repeats the instructions inside it forever.

B) It repeats the instructions inside it a specific number of times.

C) It repeats the instructions inside it until a certain condition is met.

D) It runs the instructions inside it only once.

Answer: B) It repeats the instructions inside it a specific number of times.

2. Which block would you use if you want a sprite to perform an action continuously until a certain
condition is met?

A) "Repeat [ ] times"

B) "Forever"

C) "Repeat Until"

D) "Wait [ ] seconds"

Answer: C) "Repeat Until"

3. How does the "Forever" block differ from the "Repeat [ ] times" block?

A) The "Forever" block repeats indefinitely, while the "Repeat [ ] times" block stops after a specific
number of repetitions.

B) The "Forever" block only works with numerical inputs, while the "Repeat [ ] times" block uses text
inputs.

C) The "Forever" block repeats a specific number of times, while the "Repeat [ ] times" block repeats
indefinitely.

D) The "Forever" block waits for a condition, while the "Repeat [ ] times" block does not.

Answer: A) The "Forever" block repeats indefinitely, while the "Repeat [ ] times" block stops after a
specific number of repetitions.

4. What happens if the condition in the "Repeat Until" block is never met?

A) The sprite will stop executing any instructions.

B) The sprite will repeat the instructions inside the block indefinitely.

C) The sprite will execute the instructions inside the block once and stop.

D) The sprite will wait until the condition is met.

Answer: B) The sprite will repeat the instructions inside the block indefinitely.
5. Which block is best for making a sprite change color every second?

A) "Repeat [ ] times"

B) "Forever"

C) "Repeat Until"

D) "Wait [ ] seconds"

Answer: B) "Forever"

6. If you want to make a sprite move 10 steps forward and then turn around, and you want this
action to happen 6 times, which block would you use?

A) "Forever"

B) "Repeat [6] times"

C) "Repeat Until"

D) "Wait [ ] seconds"

Answer: B) "Repeat [6] times"

7. To ensure a sprite keeps moving until it touches the edge of the screen, which block should be
used?

A) "Repeat [ ] times"

B) "Forever"

C) "Repeat Until"

D) "Wait [ ] seconds"

Answer: C) "Repeat Until"

8. Which loop block is ideal for creating a continuous animation that should keep running until the
program stops?

A) "Repeat [ ] times"

B) "Forever"

C) "Repeat Until"

D) "Wait [ ] seconds"

Answer: B) "Forever"
9. What type of loop should you use to make a sprite say "Hello" 5 times, with a pause between each
"Hello"?

A) "Forever"

B) "Repeat [5] times"

C) "Repeat Until"

D) "Wait [ ] seconds"

Answer: B) "Repeat [5] times"

10. How can you make a sprite keep performing actions like moving and changing costumes until it
hits a specific color?

A) Use a "Repeat [ ] times" block.

B) Use a "Forever" block.

C) Use a "Repeat Until" block with the condition set to "touching color [ ]?"

D) Use a "Wait [ ] seconds" block.

Answer: C) Use a "Repeat Until" block with the condition set to "touching color [ ]?"

1. The "________" block repeats the actions inside it a specific number of times and then stops.

Answer: Repeat [ ] times

2. To make a sprite continue performing actions until a certain condition is met, you would use the
"________" block.

Answer: Repeat Until

3. The "________" block causes a sprite to perform actions continuously without ever stopping,
unless you manually stop the program.

Answer: Forever

4. If you want a sprite to move 10 steps forward and then turn 15 degrees, repeating this sequence 8
times, you should use the "________" block.

Answer: Repeat [8] times

5. To make a sprite move across the stage until it touches the edge and then change direction, use
the "________" block with the condition set to "touching edge?".

Answer: Repeat Until


6. A sprite keeps saying "Hello" indefinitely every second. To achieve this, you would use the
"________" block and place the "say [Hello]" and "wait [1] seconds" blocks inside it.

Answer: Forever

7. To make a sprite perform a series of actions a fixed number of times and then stop, use the
"________" block with the desired number of repetitions.

Answer: Repeat [ ] times

8. If you need to repeat an action until the sprite touches a specific color, you should use the
"________" block and set the condition to "touching color [ ]?".

Answer: Repeat Until

9. To continuously animate a sprite by changing its costume every 2 seconds, use the "________"
block and place the "change costume" and "wait [2] seconds" blocks inside it.

Answer: Forever

10. If you want a sprite to perform an action 5 times and then wait for 2 seconds before performing
the action again, use a combination of the "________" block and "wait [2] seconds".

Answer: Repeat [5] times

You might also like