Answer Key
Module 4: Send 2 Messages



Module 7: Quiz
1.
-
{"func":"blockControlBroadcast","values":[{"type":"string","value":""}]}
-
{"func":"blockSoundPlayDrum","values":[{"type":"choice","value":"35 Acoustic Bass Drum"},{"type":"number","value":"0.2"}]}
-
{"func":"blockSoundPlay","values":[{"type":"string","value":""}]}
-
{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":""}]}
2.
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"left arrow"}],"next":{"func":"blockLooksNextCostume","next":{"func":"blockControlWait","values":[{"type":"number","value":".3"}],"next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"blue button off"}],"next":{"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}]}}}}}
-
The message will be broadcast and the punch sound will play -
The message will not be broadcast and the punch sound will play -
The message will be broadcast and the punch sound will not play -
The message will not be broadcast and the punch sound will not play
3.
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"right arrow"}],"next":{"func":"blockLooksNextCostume","next":{"func":"blockControlWait","values":[{"type":"number","value":".3"}],"next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"blue button off"}],"next":{"func":"blockControlForever","containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}]}]}}}}}
-
When the right arrow is pressed, the button will change costumes and the 'punch' message will be sent once -
When the right arrow is pressed, the button will change costumes and the 'punch' message will be sent repeatedly until the end of the program -
When the right arrow is pressed, the button will change costumes but the 'punch' message will not be sent -
When the right arrow is pressed, the button will change costumes and the 'punch' message will be sent ten times
4.
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"left arrow"}],"next":{"func":"blockLooksNextCostume","next":{"func":"blockControlWait","values":[{"type":"number","value":".3"}],"next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"blue button off"}],"next":{"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}]}}}}}
-
True -
False
5.
block. {"func":"blockLooksNextCostume"}
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"left arrow"}],"next":{"func":"blockLooksNextCostume","next":{"func":"blockControlWait","values":[{"type":"number","value":".3"}],"next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"blue button off"}],"next":{"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}]}}}}}
-
True -
False
6.
{"func":"blockSoundPlay","values":[{"type":"string","value":"Song1"}],"next":{"func":"blockSoundPlay","values":[{"type":"string","value":"Song2"}]}}
-
The songs cannot be played correctly -
Replace the first
with{"func":"blockSoundPlay","values":[{"type":"string","value":""}]}
{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":""}]}
-
Replace the second
with{"func":"blockSoundPlay","values":[{"type":"string","value":""}]}
{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":""}]}
-
Add a
block around the code block{"func":"blockControlForever","containers":[null]}
7.
block.
{"func":"blockControlBroadcast","values":[{"type":"string","value":""}]}
-
True -
False
8.
-
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":""}]}
-
{"func":"blockControlBroadcast","values":[{"type":"string","value":""}]}
-
{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":""}]}
-
{"func":"registerFlagTrigger"}
9.
-
{"func":"blockControlRepeat","values":[{"type":"number","value":"5"}],"containers":[{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":"Song"}]}]}
-
{"func":"blockControlRepeat","values":[{"type":"number","value":"5"}],"containers":[{"func":"blockSoundPlay","values":[{"type":"string","value":"Song"}]}]}
-
{"func":"blockControlForever","containers":[{"func":"blockSoundPlay","values":[{"type":"string","value":"Song"}]}]}
-
{"func":"blockSoundPlayUntilDone","values":[{"type":"string","value":"Song"}]}
10.
-
True -
False
11.
{"func":"registerFlagTrigger","next":{"func":"blockControlForever","containers":[{"func":"blockSoundPlayDrum","values":[{"type":"choice","value":"35 Acoustic Bass Drum"},{"type":"number","value":"0.2"}]}]}}
-
It plays the drum sound forever when the play button is clicked -
It plays the drum sound once when the play button is clicked -
It plays the drum sound forever when the left button is pressed -
It plays the drum sound forever when the Actor is clicked
12.
block?
{"func":"blockControlBroadcast","values":[{"type":"string","value":""}]}
-
It specifies which message is being broadcast -
It specifies which sound will be played -
It specifies the name of the Actor -
It specifies which drum sound will be played
13.
{"func":"registerTrigger","values":[{"type":"wrapper","func":"valueSensingMouseDown"}],"next":{"func":"blockSoundPlay","values":[{"type":"string","value":"Song"}]}}
-
It plays the song when the mouse is pressed -
It plays the song when the play button is clicked -
It plays the song when the Actor is clicked -
It plays the song when the spacebar is pressed
14.
block to the bottom of the following code? {"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}]}
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"left arrow"}],"next":{"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}],"next":{"func":"blockLooksNextCostume","next":{"func":"blockControlWait","values":[{"type":"number","value":".1"}],"next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"blue button off"}]}}}}}
-
The BeatBot will play its sound before the button changes costumes -
The BeatBot will play its sound after the button changes costumes -
The BeatBot will not play any sounds -
The BeatBot will play its sound while the button changes costumes
15.
-
,{"func":"registerFlagTrigger"}
,{"func":"blockControlForever","containers":[null]}
,{"func":"blockLooksNextCostume"}
{"func":"blockControlWait","values":[{"type":"number","value":""}]}
-
,{"func":"blockControlBroadcast","values":[{"type":"string","value":""}]}
{"func":"blockControlWait","values":[{"type":"number","value":"1"}]}
-
,{"func":"registerSpriteTrigger"}
{"func":"blockSoundPlay","values":[{"type":"string","value":""}]}
-
,{"func":"blockMotionMove","values":[{"type":"number","value":"10"}]}
{"func":"blockLooksNextCostume"}
16.
{"func":"registerKeyTrigger","values":[{"type":"choice","value":"left arrow"}],"next":{"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}],"next":{"func":"blockLooksNextCostume","next":{"func":"blockControlWait","values":[{"type":"number","value":".1"}],"next":{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"blue button off"}]}}}}}
-
{"func":"blockControlBroadcast","values":[{"type":"string","value":"punch"}]}
-
{"func":"blockLooksNextCostume"}
-
{"func":"blockControlWait","values":[{"type":"number","value":".1"}]}
-
{"func":"blockLooksSwitchCostume","values":[{"type":"string","value":"blue button off"}]}
17.
-
Both the buttons will make the same sound when pressed -
The "punch" message will no longer work -
The buttons will still play their original sounds when pressed -
Neither of the buttons will be able to play sounds anymore
U.S. Standards
- CCSS-Math: MP.1
- CCSS-ELA: RF.5.4.A, 6-8.RST.3, 6-8.RST.4, 6-8.RST.7
- CSTA: 1B-AP-11, 1B-AP-12, 1B-AP-15, 2-AP-13, 2-AP-16, 2-AP-17
- CS CA: 3-5.AP.10, 3-5.AP.13, 3-5.AP.14, 3-5.AP.17, 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
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