Home > Articles > Programming

  • Print
  • + Share This
This chapter is from the book

Workshop

Quiz

  1. When you define a broadcast in Scratch, which assets can receive the broadcast message and therefore take action upon it?

    1. Only the sending sprite

    2. Only the receiving sprite

    3. Only the Stage and its backdrops

    4. The Stage and all sprites

  2. Which of the following is a valid way to test for two or more conditions in a Scratch script?

    1. A Boolean block

    2. A nested if C block

    3. A repeat C block

    4. A broadcast block

  3. Which of the following Scratch graphical effects can be used to fade in or fade out a sprite on the Stage?

    1. Color

    2. Pixelate

    3. Mosaic

    4. Ghost

Answers

  1. The correct answer is choice D. In Scratch 2.0, any broadcasts that are sent out from a sprite or the Stage are receivable by both the Stage as well as all sprites in the project. Recall that the sending sprite can also receive its own message. However, a sprite or the Stage is not obligated to receive a message.

    The Scratch Wiki (http://cbt.gg/1bop3og) includes a hack or workaround that does enable you to effectively target specific sprites with broadcast messages.

  2. The correct answer is choice B. By default, an if C block tests for the truth or falsity of a single condition (although you can certainly embed multiple operator blocks—you’ll see how to do that in Hour 10, “Using Operators Blocks.” An easy approach to solving this problem that you discovered in this chapter is nesting one or more if C blocks inside of the outer, original C block.

  3. The correct answer is choice D. The ghost graphic effect works well for fading in or fading out a sprite on the Stage. Changing the color effect can make a sprite look like it’s flashing. The pixelate effect makes a sprite look retro or old-fashioned. The mosaic graphic effect is useful for transitioning a sprite between costumes.

  • + Share This
  • 🔖 Save To Your Account