Middle School course

Programming 301

  • GRADES 7-8
  • BEGINNER
  • WEB
  • 17 LESSONS
Slide: 1 of 27

Answer Key

Module 4: Move The Valkyrie

Module 5: Pickups

Module 7: Cross the Desert

Module 8: Collect the medal

Module 9: Another medal

Module 10: Quiz

1. When you press Play in your program, what is the first block that runs?

  • {"func":"registerFlagTrigger"}
  • {"func":"registerSpriteTrigger"}
  • {"func":"blockSoundPlay","values":[{"type":"string","value":""}]}
  • {"func":"blockLooksNextCostume"}

2. To change an Actor's costume when the program starts, which code would you use?

  • {"func":"registerFlagTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"blockLooksNextCostume"}
  • {"func":"registerSpriteTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"registerFlagTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":""}]}}

3. Which of the following code blocks would play a drum sound?

  • {"func":"registerFlagTrigger"}
  • {"func":"blockLooksNextCostume"}
  • {"func":"blockSoundPlay","values":[{"type":"string","value":"drum"}]}
  • {"func":"registerSpriteTrigger"}

4. To make an Actor play a guitar sound when clicked, which code blocks would you use?

  • {"func":"registerFlagTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":"guitar"}]}}
  • {"func":"registerSpriteTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":"guitar"}]}}
  • {"func":"registerSpriteTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"blockSoundPlay","values":[{"type":"string","value":"guitar"}]}

5. Which of these will make code run when an Actor is clicked?

  • {"func":"registerFlagTrigger"}
  • {"func":"registerSpriteTrigger"}
  • {"func":"blockLooksNextCostume"}
  • {"func":"blockSoundPlay","values":[{"type":"string","value":""}]}

6. How would you change an Actor's costume when it is clicked?

  • {"func":"registerFlagTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"registerSpriteTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"blockLooksNextCostume"}
  • {"func":"registerSpriteTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":""}]}}

7. What will the following code blocks do to an Actor?
{"func":"registerFlagTrigger","next":{"func":"blockLooksNextCostume"}}

  • The Actor will change costumes each time the program starts
  • The Actor will change costumes each time it is clicked
  • The Actor will play an animation
  • Nothing will happen to the Actor

8. What will the following code blocks do to an Actor?
{"func":"registerSpriteTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":"moo"}]}}

  • The Actor will change costumes when clicked
  • The Actor will make a moo sound when clicked
  • The Actor will make a moo sound when the program starts
  • Nothing will happen to the Actor

9. Which of the following statements is true?

  • The {"func":"blockSoundPlay","values":[{"type":"string","value":""}]} block can be used to play music.
  • The {"func":"blockLooksNextCostume"} block can be used to play music.
  • The {"func":"blockSoundPlay","values":[{"type":"string","value":""}]} block can be used to change how an Actor looks.
  • The {"func":"registerFlagTrigger"} block can be used to change how an Actor looks.

10. To make an Actor play a guitar sound when tapped, which code blocks would you use?

  • {"func":"registerFlagTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":"guitar"}]}}
  • {"func":"registerSpriteTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":"guitar"}]}}
  • {"func":"registerSpriteTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"blockSoundPlay","values":[{"type":"string","value":"guitar"}]}

11. Which of these will make code run when an Actor is tapped?

  • {"func":"registerFlagTrigger"}
  • {"func":"registerSpriteTrigger"}
  • {"func":"blockLooksNextCostume"}
  • {"func":"blockSoundPlay","values":[{"type":"string","value":""}]}

12. How would you change an Actor's costume when it is tapped?

  • {"func":"registerFlagTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"registerSpriteTrigger","next":{"func":"blockLooksNextCostume"}}
  • {"func":"blockLooksNextCostume"}
  • {"func":"registerSpriteTrigger","next":{"func":"blockSoundPlay","values":[{"type":"string","value":""}]}}

13. What will the following code blocks do to an Actor?
{"func":"registerFlagTrigger","next":{"func":"blockLooksNextCostume"}}

  • The Actor will change costumes each time the program starts
  • The Actor will change costumes each time it is clicked
  • The Actor will play an animation
  • Nothing will happen to the Actor

Module 11: Improve the Troll Chase Game

U.S. Standards

  • CCSS-Math: MP.1
  • CCSS-ELA: RI.7.4, RI.8.4, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
  • CSTA: 2-AP-10, 2-AP-12, 2-AP-13, 2-AP-15, 2-AP-16, 2-AP-17
  • CS CA: 6-8.AP.12, 6-8.AP.13, 6-8.AP.15, 6-8.AP.16, 6-8.AP.17
  • ISTE: 1.c, 1.d, 4.d, 5.c, 5.d, 6.b

U.K. Standards

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
Key stage 4
All pupils must have the opportunity to study aspects of information technology and computer science at sufficient depth to allow them to progress to higher levels of study or to a professional career. Pupils should be taught to:
  • develop their capability, creativity and knowledge in computer science, digital media and information technology
  • develop and apply their analytic, problem-solving, design, and computational thinking skills
  • understand how changes in technology affect safety, including new ways to protect their online privacy and identity, and how to report a range of concerns

Lesson 1: Introduction

Course: | Web

  • Introduction
  • Intro Video
  • Tutorial Intro
  • Move The Valkyrie
  • Pickups
  • Puzzle Intro
  • Cross the Desert
  • Collect the medal
  • Another medal
  • Quiz
  • Improve the Troll Chase Game

Description

An advanced introduction to programming for middle school. Introduce programming fundamentals to your class as they build two arcade-inspired games from start to finish. The Adventure Game features a knight who has to defeat enemies to reach treasure. Students program arrow keys, fluid motion, hero and enemy behavior, and winning conditions. In Dragon Attack, they define multiple levels and lives, and program a boss enemy, while learning about variables and cloning.

Topics

  • Events
  • Keyboard and mouse interaction
  • Conditional loops
  • Nested loops
  • Sending and receiving messages
  • Fluid motion
  • Parallax scrolling
  • Local and global variables
  • Functions
  • Object cloning

What Students Learn

  • Build complex multi-level games
  • Use variables to keep score
  • Use cloning to create actors programmatically
  • Build algorithms using complex conditional logic
  • Understand parallelism with multiple scripts
  • Program different behaviors for different actors
  • Publish projects to the Web
  • 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.