Alice Chapter 2 Lab 2



Name:_________________________________________



Date:_________________________________________


Exercises from Chapter 2

For each of the following exercises, create a storyboard on a separate sheet of paper and then translate the storyboard to a program. Include at least one comment in your program.

  1. Complete Exercise 4 (Circling Fish).


  2. Complete Exercise 5 (Tortoise Gets a Cookie).


Extra For Experts

  1. Complete Exercise 6.  Magnet Fun: ___________


Concept Questions (Short Answers)

  1. (a) Describe what is meant by the term method. (Page # _____ )




    (b) What does a method define? (Page # _____ )




  2. (a) Which control statement is used in Alice to create a block of instructions that will occur in sequence when the program is run? (Page # _____ )




    (b) Which control statement is used in Alice to create a block of instructions that will occur simultaneously when the program is run? (Page # _____ )




  3. What is meant by the phrase "one block of code can be nested in another"? (Page # _____ )







  4. How do you know whether a computer program has a bug? (Page # _____ )







  5. What is the purpose of a set instruction? (Page # _____ )







  6. If comments are ignored by Alice then why do we add comments to our programs? (Page # _____ )







  7. What built-in method is used to:

    (a) change the orientation of an object? (Page # _____ )




    (b) display a comic-book style text bubble on the screen? (Page # _____ )




    (c) synchronize the movement of one object to the movement of another? (Page # _____ )