UNIT 1 - QUIZ - Study Guide.pdf

Full Transcript

UNIT 1 - QUIZ - Study Guide How many pixels wide is the Scratch Screen? ○ ANS: 480 How many pixels high is the Scratch Screen? ○ ANS: 360 What must ALL Scratch Programs Include? ○ ANS: Sprites & Scripts Scratch Development Environment What word describes each instruction u...

UNIT 1 - QUIZ - Study Guide How many pixels wide is the Scratch Screen? ○ ANS: 480 How many pixels high is the Scratch Screen? ○ ANS: 360 What must ALL Scratch Programs Include? ○ ANS: Sprites & Scripts Scratch Development Environment What word describes each instruction used to control sprites in Scratch? ○ ANS: Block What word describes a set of blocks used to control sprites in Scratch? ○ ANS: A Script What is Scratch? ○ ANS: A Programming Language In the Scratch Programming Environment where can you change the background on a Scratch screen? ○ ANS: Stage Information What are just some of the things a Scratch Program Can Do. ○ ANS: Move A Sprite Around the Screen Speak Hide Increase Size Play Music What is the Output of the Following Block of Code? ○ ○ ANS: 2,3,4,5,8,11,14 What happens when the Green Flag is pressed followed by the Right Arrow? ○ Options: A) The Sprite does not Move B) The Sprite moves 10 pixels to the right C) Nothing D) The Sprite moves Down 10 pixels E) The Sprite moves 20 pixels to the right F) The Sprite Moves 10 pixels to the left ○ ANS: E Write the blocks of code to replace the Glide Block Shown from Sprite 'e' 's current location. Write each block on a new line like you were doing in scratch. HINT: You will need to use a "repeat block" as it needs to simulate the Glide. ANS: First How many Pixels is the Sprite moving on the X and on the Y. 200 - (-40) = 240 and 110 - (-70) = 180. Now he has to glide there in 6 seconds so we have a couple of options. The easiest one is to wait 1 send for each change in x and change in y SO: Repeat 6 Change x by 40 Change y by 30 Wait 1 seconds This is how this question would be written out on the UNIT 1 test. Notice the values inside the loop are indented. Replace the code below to use a loop(s).. Keep in mind the Sprite HAS to move the exact number of steps specified to keep the exact same motion so replace only the code you can and start with the event. (Write each code block on a new line) ANS: Green Flag Repeat 4 Move 8 Move 10 Move 10 Move 25 Repeat 8 Move 5 Move 15 Move 15 Move 20 NOTES: The Move 10 could be in a Repeat but same amount of code so better just do the two moves. How long does the following block of code take to execute once the Green Flag is clicked. ANS: 33 After the Green Flag is pressed, what will be the final position in degrees be for this Sprite? In other words if we add another "point in direction x" block after the loop with x being the degrees the Sprite would not turn. ANS: Point in Direction: 24 Degrees Write the Output for the following Block of Code. ANS: 4,5,7,9,12,15,15 ANS: 2,6,8,10,14,18,18 ANS: 3,5,5,8,11,13,15,17,19,21 Ans.. Next page.. Don’t look ANS: 2,5,8,11,13,15,17,19,19 Write out the Output for the following Block of Code ANS: 2,5,5,9,13,16,19,19 WHat is the Output of the following Block of Code? ANS: 4,5,8,11,14,16,18,20,20 Write the blocks of code to replace the Glide Block Shown from Sprite the Bat’s current location. Write each block on a new line like you were doing in scratch. HINT: You will need to use a "repeat block" as it needs to simulate the Glide ○ Repeat 7 Times Change x by 19 Change y by -15 Wait 1 sec ANS: 3,4,8,12,15,18,21,24,24 ANS: 2,5,7,9,11,13,17,21,25

Use Quizgecko on...
Browser
Browser