Elementary School course

Programming 101

  • GRADES 3-4
  • BEGINNER
  • WEB IPAD
  • 15 LESSONS
  • Voiceovers
Slide: 1 of

Answer Key

Module 4: Balloon Game

Module 6: Balloon Game 2 Game

Module 8: Adding Scoring

Module 9: Pop the Candy

Module 11: Ghost Game

Module 12: Quiz

1. What does the {"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"0"},{"type":"number","value":"10"}]} block return?

  • A random number between 0 and 10
  • 5
  • The name of the Actor
  • The block does not return something

2. Some blocks called 'return' blocks don't do anything on screen, but they 'return' some kind of value. For example, you can replace the 10 in {"func":"blockMotionMove","values":[{"type":"number","value":"10"}]} with a return block that returns a number. Which of the following blocks is a 'return' block? (Hint: You could replace the 10 in 'Move 10 Pixels' with this block)

  • {"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":""},{"type":"number","value":""}]}
  • {"func":"blockMotionMove","values":[{"type":"number","value":""}]}
  • {"func":"blockMotionChangeXBy","values":[{"type":"number","value":""}]}
  • {"func":"blockMotionTurnCW","values":[{"type":"string","value":""}]}

3. How do you make a Balloon Actor only show up when the user presses a button? The button has already has the following code.
{"func":"registerSpriteTrigger","next":{"func":"blockControlBroadcast","values":[{"type":"string","value":"start"}]}}

  • Add {"func":"registerBroadcastTrigger","values":[{"type":"string","value":"start"}],"next":{"func":"blockLooksShow"}} to the balloon's code
  • Add {"func":"registerFlagTrigger","next":{"func":"blockLooksHide"}} to the balloon's code
  • Add {"func":"blockLooksShow"} to the button's code
  • Add {"func":"blockLooksNextCostume"} to the balloon's code

4. True or False: The {"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"10"},{"type":"number","value":"20"}]} code block can return the number 0.

  • True
  • False

5. True or False: You can use the {"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":""},{"type":"number","value":""}]} block to pick a random number of seconds to wait by putting the {"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":""},{"type":"number","value":""}]} block inside a {"func":"blockControlWait","values":[{"type":"number","value":""}]} block.

  • True
  • False

6. Which of the following code blocks make an Actor appear on a random spot on the Stage? Remember, the X values on the Stage range from -682 to 682, and the Y values range from -384 to 384.

  • {"func":"blockMotionGoTo","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"-682"},{"type":"number","value":"682"}]},{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"-384"},{"type":"number","value":"384"}]}]}
  • {"func":"blockMotionMove","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"-682"},{"type":"number","value":"682"}]}]}
  • {"func":"blockMotionPointDirection","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"0"},{"type":"number","value":"360"}]}],"next":{"func":"blockMotionMove","values":[{"type":"number","value":"10"}]}}
  • {"func":"blockMotionGoTo","values":[{"type":"number","value":"0"},{"type":"number","value":"0"}]}

7. How do you make a balloon starting at the bottom of the stage float upwards, without ever stopping?

  • {"func":"blockControlForever","containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"5"}],"next":{"func":"blockControlWait","values":[{"type":"number","value":".1"}]}}]}
  • {"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"5"}]}]}
  • {"func":"blockMotionMove","values":[{"type":"number","value":"10"}]}
  • {"func":"blockMotionGoTo","values":[{"type":"number","value":"0"},{"type":"number","value":"200"}]}

8. If you have 3 Costumes, how would you pick a random Costume to switch to?

  • {"func":"blockLooksSwitchCostume","values":[{"type":"wrapper","func":"valueOpRandom","values":[{"type":"number","value":"1"},{"type":"number","value":"3"}]}]}
  • Use the {"func":"blockLooksSwitchCostume","values":[{"type":"string","value":""}]} block and enter any number that you want.
  • {"func":"blockControlForever","containers":[{"func":"blockLooksNextCostume"}]}
  • You cannot do this in Tynker

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 12: Keeping Score

Course: | iPad Web

  • Introducing Random Numbers
  • Concepts
  • Balloon Game Example
  • Balloon Game
  • Balloon Game 2 Example
  • Balloon Game 2 Game
  • Adding Scoring Example
  • Adding Scoring
  • Pop the Candy
  • Ghost Game Example
  • Ghost Game
  • Quiz

Description

An easy introduction to programming for beginners in lower elementary grades. Familiarize your class with visual programming techniques. Students progress through the lessons learning concepts in a game-like interface. To complete each lesson, students typically go through a concept review, solve a puzzle, run through a tutorial, build their own project, and take a quiz. They create interactive stories, animations, and mini-games to help Professor Ada battle the evil Dr. Glitch! After completing this lesson plan, students will be able to build a wide variety of simple programs with events, loops, and some conditional logic.

Topics

  • Sequencing
  • Repetition
  • Events
  • Conditional logic
  • Animation
  • Pen drawing
  • Drawing shapes and patterns
  • Playing musical notes
  • Sending and receiving messages
  • Handling user input
  • Color detection

What Students Learn

  • Design animated characters
  • Create interactive scenes
  • Make animated birthday cards
  • Write cartoon stories
  • Create a music machine
  • Experiment with math art
  • Design and build small games
  • Troubleshoot and debug simple 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