Elementary School course

Programming 102

  • GRADES 3-4
  • INTERMEDIATE
  • WEB IPAD
  • 16 LESSONS
Slide: 1 of 19

Answer Key

Module 4: Starry Night

Module 5: Star Runner

Module 6: Connect the Stars

Module 7: Quiz

1. What is one way to make a still copy of an Actor?

  • {"func":"blockPenStamp"}
  • {"func":"registerSpriteTrigger","next":{"func":"blockLooksShow"}}
  • {"func":"blockControlForever","containers":[{"func":"blockLooksShow"}]}
  • {"func":"blockMotionPointTowards","values":[{"type":"string","value":"self"}],"next":{"func":"blockMotionMove","values":[{"type":"number","value":"10"}]}}

2. David wants to make a stamp machine program. He has an Actor with two Costumes. When the user clicks on the Actor, he wants the Actor's Costume to change. When the user presses the spacebar, he wants the Actor to stamp on the Stage. He should use the ___ event block for changing Costumes and the ___ event block for stamping.

  • {"func":"registerSpriteTrigger"}, {"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}]}
  • {"func":"registerFlagTrigger"}, {"func":"registerSpriteTrigger"}
  • {"func":"registerBroadcastTrigger","values":[{"type":"string","value":""}]}, {"func":"registerFlagTrigger"}
  • {"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}]}, {"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}]}

3. Megan is making a stamp machine program like the one you just made. She has a Smiley Face Actor with two Costumes: one for a normal smiley face, one for when the smiley face is being stamped down. What two blocks should go below {"func":"registerSpriteTrigger"} so that she both stamps an image of the Actor on the Stage and changes the Actor's Costume?

  • {"func":"blockPenStamp","next":{"func":"blockLooksNextCostume"}}
  • {"func":"blockPenStamp","next":{"func":"blockMotionMove","values":[{"type":"number","value":"10"}]}}
  • {"func":"blockLooksNextCostume","next":{"func":"blockLooksShow"}}
  • {"func":"blockLooksNextCostume","next":{"func":"blockLooksHide"}}

4. What does dragging code blocks into your backpack do?

  • Lets you save these blocks to use in other programs
  • Deletes them
  • Nothing, there is no backpack
  • Makes the code run

5. Arin is trying to make a sky with stars of different sizes. Which of these blocks can help him achieve this?

  • {"func":"blockLooksChangeSizeBy","values":[{"type":"number","value":"10"}]}
  • {"func":"blockMotionGoTo","values":[{"type":"number","value":"0"},{"type":"number","value":"0"}]}
  • {"func":"blockLooksSetEffect","values":[{"type":"choice","value":"color"},{"type":"number","value":"0"}]}
  • {"func":"blockPenChangeSize","values":[{"type":"number","value":"1"}]}

6. True or False: This block {"func":"blockPenStamp"} will create new Actors.

  • True
  • False

7. Which block of code would fill the stage with 100 stars of different sizes in random spots?

  • {"func":"blockControlRepeat","values":[{"type":"number","value":"100"}],"containers":[{"func":"blockLooksSetSize","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"1"},{"type":"number","value":"100"}]}],"next":{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp"}}}]}
  • {"func":"blockControlRepeat","values":[{"type":"number","value":"1000"}],"containers":[{"func":"blockLooksSetSize","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"1"},{"type":"number","value":"100"}]}],"next":{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp"}}}]}
  • {"func":"blockControlRepeat","values":[{"type":"number","value":"100"}],"containers":[{"func":"blockLooksSetSize","values":[{"type":"number","value":"100"}],"next":{"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenLeft"},{"type":"wrapper","func":"valueSensingScreenRight"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"wrapper","func":"valueSensingScreenBottom"},{"type":"wrapper","func":"valueSensingScreenTop"}]}],"next":{"func":"blockPenStamp"}}}]}
  • {"func":"blockControlRepeat","values":[{"type":"number","value":"100"}],"containers":[{"func":"blockLooksSetSize","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"1"},{"type":"number","value":"100"}]}],"next":{"func":"blockMotionGoTo","values":[{"type":"number","value":"0"},{"type":"number","value":"0"}],"next":{"func":"blockPenStamp"}}}]}

8. David wants to make a stamp machine program. He has an Actor with two Costumes. When the user taps the Actor, he wants the Actor's Costume to change. When the user taps the screen, he wants the Actor to stamp on the Stage. He should use the ___ event block for changing Costumes and the ___ event block for stamping.

  • {"func":"registerSpriteTrigger"}, {"func":"registerScreenTrigger","values":[{"type":"choice","value":"clicked"}]}
  • {"func":"registerFlagTrigger"}, {"func":"registerSpriteTrigger"}
  • {"func":"registerBroadcastTrigger","values":[{"type":"string","value":""}]}, {"func":"registerFlagTrigger"}
  • {"func":"registerScreenTrigger","values":[{"type":"choice","value":"clicked"}]}, {"func":"registerScreenTrigger","values":[{"type":"choice","value":"clicked"}]}

U.S. Standards

  • CCSS-Math: 3.NBT.A.2, MP.1
  • CCSS-ELA: RF.3.4.A, RF.4.4.A
  • CSTA: 1B-AP-11, 1B-AP-12, 1B-AP-15
  • CS CA: 3-5.AP.13, 3-5.AP.14, 3-5.AP.17
  • ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 7.c

U.K. Standards

Key stage 2
Pupils should be taught to:
  • design, write and debug programs that accomplish specific goals, including controlling or simulating physical systems; solve problems by decomposing them into smaller parts
  • use sequence, selection, and repetition in programs; work with variables and various forms of input and output
  • use logical reasoning to explain how some simple algorithms work and to detect and correct errors in algorithms and programs
  • understand computer networks, including the internet; how they can provide multiple services, such as the World Wide Web, and the opportunities they offer for communication and collaboration
  • use search technologies effectively, appreciate how results are selected and ranked, and be discerning in evaluating digital content
  • select, use and combine a variety of software (including internet services) on a range of digital devices to design and create a range of programs, systems and content that accomplish given goals, including collecting, analysing, evaluating and presenting data and information
  • use technology safely, respectfully and responsibly; recognise acceptable/unacceptable behaviour; identify a range of ways to report concerns about content and contact

Lesson 11: Stamping

Course: | iPad Web

  • Introduction
  • Concepts
  • Constellation Maker Example
  • Starry Night
  • Star Runner
  • Connect the Stars
  • Quiz

Description

Advance your class to intermediate level programming concepts using a wider set of visual blocks. In Snowball Siege, students learn about layering, Actor visibiliy, motion, and collisions. Then, in Star Runner, they use line drawing commands and program math art. They build several mini-games while understanding how to create more complex programs. After completing this lesson plan, students will be able to build a wide variety of school projects and their own comprehensive games.

Topics

  • Animation sequences
  • Motion
  • Game design basics
  • Built-in animation commands
  • Advanced keyboard and mouse control
  • Sending and receiving messages
  • Actor layering
  • Advanced events
  • Math operators
  • Functions

What Students Learn

  • Gain confidence in building a variety of programs
  • Apply programming concepts to build your own games
  • Design characters with multiple animation sequences
  • Write interactive stories with multiple scenes
  • Make an image editor using drawing primitives
  • Define more advanced keyboard and mouse interaction
  • Program special effects and explosions
  • Troubleshoot and debug programs

Technical Requirements

* Online courses require a modern desktop computer, laptop computer, Chromebook, or Netbook with Internet access and a Chrome (29+), Firefox (30+), Safari (7+), or Edge (20+) browser. No downloads required.
* Tablet courses require an iPad (iOS 10+) with Tynker or Tynker Junior app installed and Internet access