Elementary School course

Programming 102

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

Answer Key

Module 4: Sky Train

Module 5: Sky Train Extended

Module 6: Pick up the Crystals

Module 7: Quiz

1. Ship1 is using this code block. {"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"Moon"}]} What does this block do?

  • It finds the distance from Ship1 to the moon.
  • It tells you how long the moon is.
  • It tells you how long the ship is.
  • This code block does not exist.

2. True or False: You can only use functions in the Actor they were defined.

  • True
  • False

3. True or False: Pen drawings will remain on the Stage until you use the Clear block. {"func":"blockPenClear"}

  • True
  • False

4. Which block allows you to stop drawing?

  • {"func":"blockPenDown"}
  • {"func":"blockPenUp"}
  • {"type":"wrapper","func":"valueSensingMouseDown"}
  • {"func":"blockLooksChangeSizeBy","values":[{"type":"number","value":"10"}]}

5. In the Sky Train we created, we wanted the second train compartment to move towards the first train compartment when their distance between each other was greater than 150. What block of code helped us achieve this?

  • {"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"train1"}]},{"type":"string","value":"150"}]}
  • {"type":"wrapper","func":"valueOpLess","values":[{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"train1"}]},{"type":"string","value":"150"}]}
  • {"type":"wrapper","func":"valueOpEqual","values":[{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"train1"}]},{"type":"string","value":"150"}]}
  • {"type":"wrapper","func":"valueOpAnd","values":[{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"train1"}]},{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"train2"}]}]}

6. What are the benefits of functions?

  • It shrinks the size of code blocks. This makes the blocks easier to read.
  • We can reuse the function rather than rewriting the code over and over again.
  • It allows you to test smaller portions of the your code rather than testing large blocks of code. This allows you to find bugs easier.
  • All of the above

7. Our hero wants to go to town to buy supplies. He does not want to waste time by walking too far. Which of these code blocks will help him choose which of two towns is closer?

  • {"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"town2"}]},{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"town1"}]}]}],"containers":[{"func":"blockMotionPointTowards","values":[{"type":"string","value":"town1"}]},{"func":"blockMotionPointTowards","values":[{"type":"string","value":"town2"}]}]}
  • {"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"town2"}]},{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"town1"}]}]}],"containers":[{"func":"blockMotionPointTowards","values":[{"type":"string","value":"town2"}]},{"func":"blockMotionPointTowards","values":[{"type":"string","value":"town1"}]}]}
  • {"func":"blockControlForeverIf","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"town2"}]},{"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"town1"}]}]}],"containers":[{"func":"blockMotionPointTowards","values":[{"type":"string","value":"town1"}]}]}
  • None of these code blocks will work.

8. True or False: This block {"type":"wrapper","func":"valueSensingDistanceToSprite","values":[{"type":"string","value":"hero"}]} can only find distances to Actors.

  • True
  • False

9. What will this block of code do when it runs? {"func":"blockControlIfElse","values":[{"type":"wrapper","func":"valueOpGreater","values":[{"type":"string","value":"a"},{"type":"string","value":"b"}]}],"containers":[{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Dance"}]},{"func":"blockAnimationSimpleSwitchCostume","values":[{"type":"string","value":"Jump"}]}]}

  • It will animate Dance.
  • It will animate Jump.
  • It will animate both Jump and Dance.
  • No animation will run because you cannot compare letters.

10. Can you compare letters with this block {"type":"wrapper","func":"valueOpGreater","values":[{"type":"string","value":"b"},{"type":"string","value":"a"}]}?

  • Yes
  • No

U.S. Standards

  • CCSS-Math: 3.NBT.A.2, MP.1
  • CCSS-ELA: RF.3.4.A, RF.4.4.A
  • CSTA: 1B-AP-10, 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 15: Sky Train

Course: | iPad Web

  • Introduction
  • Concepts
  • Sky Train Example
  • Sky Train
  • Sky Train Extended
  • Pick up the Crystals
  • 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