pxt-calliope/olddocs/js/lessons/digital-pet/quiz.md
2016-11-01 10:42:42 -07:00

684 B

digital pet quiz

A display of pet images for the @boardname@

Name

Directions

Use this activity document to guide your work in the digital pet tutorial

Answer the questions while completing the tutorial. Pay attention to the dialogues!

1. What is a 'function'?


2. Write the steps to create the function called set awake()


3. Write the code inside the function "set awake()" that shows an image of the pet awake


4. Write the steps to create the function called set sleep, function set sleep()


5. Write the code inside the function "set sleep()" that shows an image of the pet asleep