Problem #3 Embedded Loop

Problem #5 Loop & Conditional

Questions

  1. What are the types of loops contained in Scratch? What are the differences?
  2. There are "Repeats", "Forever" loops and "If Then" loops.

  3. If you are given a situation where you want an action to repeat, but you do not know how long it should repeat for, which loop is the best structure to use? Why?
  4. "Repeat Until" loop so you can continue when needed.

  5. Does the following loop structure work? Does it make sense? Why or why not?
  6. It should work. And yes it does makes sense.

  7. How can sprites “know” when to begin an action? Is there more than one way?
  8. By using the "When I Recieve" event. There are other ways too but they might not be as effective.

  9. Are the following code snippets equivalent? Why or why not?
  10. No, because there is a 'not' operator before 'key pressed'.