Middle School course

Programming 201

  • GRADES 5-6
  • BEGINNER
  • WEB IPAD
  • 17 LESSONS
Slide: 1 of 20

Answer Key

Module 3: Make Gus Jump 1

Module 4: Make Gus Jump 2

Module 5: Jump Over Obstacles

Module 7: Jump on Your Own

Module 8: Quiz

1. What's the difference between a 'Forever' loop and a 'Repeat' loop?

  • A 'Forever' loop is used for Costumes but a 'Repeat' loop is used for motion
  • A 'Forever' loop repeats code blocks inside it over and over forever, but a 'Repeat' loop only repeats them a specific number of times
  • A 'Forever' loop is used for the Stage but a 'Repeat' loop is used for Actors
  • A 'Forever' loop makes your program run forever, but a 'Repeat' loop makes it stop when you use the stop button

2. True or False: You can only use one loop in a program.

  • True
  • False

3. How do you add and connect code blocks to an Actor?

  • Select the Actor which you want to edit and then drag and drop code blocks from the code blocks panel on the left into the code area
  • Add an Actor to your game
  • Select the Actor which you want to edit and then click on the code blocks you want in the code blocks panel
  • Select the Stage and then drag and drop code blocks from the code blocks panel on the left into the code area

4. What is this?

  • the Stage
  • an Actor
  • the Media Library
  • code blocks

5. Does changing the Y position move the Actor left/right or up/down?

  • Left/right
  • Up/down
  • Neither
  • Both

6. How can you make an Actor jump higher?

  • Increase the parameter in the {"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]} block
  • Decrease the parameter in the {"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]} block
  • Increase the wait time between animations
  • Decrease the wait time between animations

7. What keys can be used with the {"func":"registerKeyTrigger","values":[{"type":"choice","value":""}]} block?

  • Up arrow
  • Space
  • Enter
  • All of the above

8. What will the following code make an Actor do?
{"func":"registerFlagTrigger","next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".5"}],"next":{"func":"blockLooksNextCostume"}}]}}

  • The Actor will loop in an animation forever
  • The Actor will move to the right ten times
  • The Actor will change his/her Costume five times
  • The Actor will change his/her Costume ten times

9. What will the following code do to an Actor?
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}],"next":{"func":"blockLooksNextCostume"}}

  • The Actor will loop in an animation when clicked
  • The Actor will change his/her Costume whenever the spacebar is pressed
  • The Actor will change his/her Costume when clicked
  • The Actor will loop in an animation once the spacebar is pressed once

10. True or False: All code blocks must be connected to the 'On Start' code block.

  • True
  • False

11. True or False: The following code block will move the Actor down.
{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}

  • True
  • False

12. Which block moves an Actor up?

  • {"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}
  • {"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}]}
  • {"func":"blockLooksNextCostume"}
  • {"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[null]}

13. Where will the Actor be after running the following code?
{"func":"blockControlRepeat","values":[{"type":"number","value":"5"}],"containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}]}}

  • The Actor will end up above where it started
  • The Actor will end up below where it started
  • The Actor will end up to the right of where it started
  • The Actor will end up to the left of where it started

14. What will the following code make an Actor do?
{"func":"blockControlRepeat","values":[{"type":"number","value":"5"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".5"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}

  • The Actor will move left
  • The Actor will move right
  • The Actor will move down
  • The Actor will move up

15. Where will the Actor be after running the following code?
{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}

  • The Actor will end up in the same position that it started in
  • The Actor will end up 200 pixels above where it started
  • The Actor will end up -200 pixels above where it started
  • The Actor will end up in the center of the screen

16. True or False: An Actor will not be able to move if it only has one costume.

  • True
  • False

17. What will happen if we replace {"func":"registerKeyTrigger","values":[{"type":"choice","value":"spac"}]} with {"func":"registerFlagTrigger"} in the following code block?
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}}}

  • The Actor will jump when space is pressed
  • The Actor will jump at the start of the program
  • The Actor will jump when it is clicked
  • The Actor will jump when the up arrow is pressed

18. What will happen if we remove the {"func":"blockControlWait","values":[{"type":"number","value":".05"}]} blocks from the following code block?
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}}}

  • The Actor will jump too fast to see
  • The Actor will jump slower than usual
  • The Actor will not jump
  • The Actor will jump up but not fall back down

19. True or False: The {"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]} block is what allows an Actor to fall back to the ground in following code.
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"space"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}}}

  • True
  • False

20. How do you add and connect code blocks to an Actor?

  • Select the Actor which you want to edit and then drag and drop the code blocks from the code blocks panel on the left into the code area
  • Add Actors
  • Select the Actor which you want to edit and tap the code blocks in the code blocks panel that you want to use
  • Select the Stage and then drag and drop the code blocks from the code blocks panel on the left into the code area

21. What parameters can be used in the {"func":"registerTiltTrigger","values":[{"type":"choice","value":""}]} block?

  • Left
  • Right
  • Forward
  • Backward
  • All of the above

22. What will the following code make an Actor do?
{"func":"registerScreenTrigger","values":[{"type":"choice","value":"touched"}],"next":{"func":"blockLooksNextCostume"}}

  • The Actor will loop in an animation when it is touched
  • The Actor will change its costume whenever the screen is touched
  • The Actor will change its costume when it is touched
  • The Actor will loop in an animation once the screen is touched once

23. Which of the following blocks will move an Actor up?

  • {"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}
  • {"func":"registerScreenTrigger","values":[{"type":"choice","value":"touched"}]}
  • {"func":"blockLooksNextCostume"}
  • {"func":"blockControlRepeat","values":[{"type":"number","value":"10"}],"containers":[null]}

24. What will happen if we replace {"func":"registerScreenTrigger","values":[{"type":"choice","value":"touched"}]} with {"func":"registerFlagTrigger"} in the following code block?
{"func":"registerScreenTrigger","values":[{"type":"choice","value":"touched"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}}}

  • The Actor will jump when the screen is touched
  • The Actor will jump at the start of the program
  • The Actor will jump when it is touched
  • The Actor will jump when the up arrow is pressed

25. What happens if we remove the {"func":"blockControlWait","values":[{"type":"number","value":".05"}]} blocks from the following code block?
{"func":"registerScreenTrigger","values":[{"type":"choice","value":"touched"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}}}

  • The Actor will jump too fast to see
  • The Actor will jump slower than usual
  • The Actor will not jump
  • The Actor will jump up but not fall back down

26. True or False: The {"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]} block is what allows an Actor to fall back to the ground in the following code block.
{"func":"registerScreenTrigger","values":[{"type":"choice","value":"touched"}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"10"}]}}],"next":{"func":"blockControlRepeat","values":[{"type":"number","value":"20"}],"containers":[{"func":"blockControlWait","values":[{"type":"number","value":".05"}],"next":{"func":"blockMotionChangeYBy","values":[{"type":"number","value":"-10"}]}}]}}}

  • True
  • False

U.S. Standards

  • CCSS-Math: 5.G.A.1, MP.1
  • CCSS-ELA: RF.5.4.A, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
  • CSTA: 1B-AP-10, 1B-AP-11, 1B-AP-12, 1B-AP-15, 2-AP-12, 2-AP-13, 2-AP-16, 2-AP-17
  • CS CA: 3-5.AP.10, 3-5.AP.12, 3-5.AP.13, 3-5.AP.14, 3-5.AP.17, 6-8.AP.12, 6-8.AP.13, 6-8.AP.16, 6-8.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
Key stage 3
Pupils should be taught to:
  • design, use and evaluate computational abstractions that model the state and behaviour of real-world problems and physical systems
  • understand several key algorithms that reflect computational thinking [for example, ones for sorting and searching]; use logical reasoning to compare the utility of alternative algorithms for the same problem
  • undertake creative projects that involve selecting, using, and combining multiple applications, preferably across a range of devices, to achieve challenging goals, including collecting and analysing data and meeting the needs of known users
  • create, reuse, revise and repurpose digital artefacts for a given audience, with attention to trustworthiness, design and usability
  • understand a range of ways to use technology safely, respectfully, responsibly and securely, including protecting their online identity and privacy; recognise inappropriate content, contact and conduct, and know how to report concerns

Lesson 4: Jumping over Obstacles

Course: | iPad Web

  • Concepts
  • Make Gus Jump Example
  • Make Gus Jump 1
  • Make Gus Jump 2
  • Jump Over Obstacles
  • Jump on Your Own Example
  • Jump on Your Own
  • Quiz

Description

An introduction to programming for beginners in upper elementary grades. Introduce your class to programming using a fun scenario-based approach where they build two complete games. Side Scroller Survival introduces them to basics of motion and animation. In BeatBot Battle, they program a robot to make it dance. On completing this lesson plan students will be able to build simple games, animations, and a variety of simple projects.

Topics

  • Use sequencing
  • Pattern recognition
  • Loops
  • Conditional logic
  • Create scenes
  • Add sounds and music
  • Use keyboard controls
  • Learn about motion
  • Broadcasting messages
  • Adding special effects

What Students Learn

  • Create interactive scenes with actors, scenes and music
  • Design animations using loops
  • Program motion along x- and y-axes
  • Build algorithms using conditional logic
  • Understand scripts running in parallel
  • Program music using notes, tempo and instruments
  • Create different scenarios and effects in games
  • Publish projects to the Web
  • 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