CBSE Class 9 Computer Applications Question 12 of 35

Scratch Programming I — Question 6

Back to all questions
6
Question

Question 6

Which of the following command will prevent your sprite to move off the stage ?

  1. go to x .......... y ..........
  2. set x to ..........
  3. If On edge, bounce
  4. change x by ..........
Answer

If On edge, bounce

Reason — If On edge, bounce command checks to see if the sprite is on the edge of the stage. If the sprite is on the edge, then it flips the sprite around so that it faces the other way. Thus, the sprite cannot get off the stage.