Computer Applications

In the stack of blocks below, how many times does the sprite move 10 steps?

In the stack of blocks below, how many times does the sprite move 10 steps? Scratch Programming I, Computer Applications Code 165 Sumita Arora Solutions CBSE Class 9.

Scratch

12 Likes

Answer

Eight times.

Explanation

CodeNo. of times sprite moves 10 stepsRemarks
move 10 steps1 timeThe sprite moves 10 steps once.
repeat 3
      move 10 steps
      move 10 steps
6 timesThe sprite moves 10 steps two times inside the repeat block. The repeat block executes 3 times.

2 * 3 = 6 times

Thus, the sprite moves 6 times inside the repeat block
move 10 steps1 timeThe sprite moves 10 steps once.

Thus, the total number of times the sprite moves is 8 (1 + 6 + 1).

Answered By

2 Likes


Related Questions