Scratch Programming Basics
21 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

How many pixels wide is the Scratch screen?

480

How many pixels high is the Scratch screen?

360

What must all Scratch programs include?

Sprites & Scripts

What word describes each instruction used to control sprites in Scratch?

<p>Block</p> Signup and view all the answers

What word describes a set of blocks used to control sprites in Scratch?

<p>A Script</p> Signup and view all the answers

What is Scratch?

<p>A Programming Language</p> Signup and view all the answers

In the Scratch programming environment, where can you change the background on a Scratch screen?

<p>Stage Information</p> Signup and view all the answers

What are just some of the things a Scratch program can do? (Select all that apply)

<p>Speak</p> Signup and view all the answers

What is the output of the following block of code?

<p>2,3,4,5,8,11,14</p> Signup and view all the answers

What happens when the green flag is pressed followed by the right arrow?

<p>The Sprite moves 20 pixels to the right</p> Signup and view all the answers

Write the blocks of code to replace the Glide block shown from Sprite 'e's current location.

<p>Repeat 6 Change x by 40 Change y by 30 Wait 1 seconds</p> Signup and view all the answers

How long does the following block of code take to execute once the green flag is clicked?

<p>33</p> Signup and view all the answers

What will be the final position in degrees for this Sprite after pressing the green flag?

<p>Point in Direction: 24 Degrees</p> Signup and view all the answers

Write the output for the following block of code.

<p>4,5,7,9,12,15,15</p> Signup and view all the answers

Write the output for the following block of code.

<p>2,6,8,10,14,18,18</p> Signup and view all the answers

Write the output for the following block of code.

<p>3,5,5,8,11,13,15,17,19,21</p> Signup and view all the answers

Write the output for the following block of code.

<p>2,5,8,11,13,15,17,19,19</p> Signup and view all the answers

What is the output of the following block of code?

<p>4,5,8,11,14,16,18,20,20</p> Signup and view all the answers

Write the blocks of code to replace the glide block shown from Sprite the Bat's current location. HINT: You will need to use a 'repeat block' as it needs to simulate the glide.

<p>Repeat 7 Times Change x by 19 Change y by -15 Wait 1 sec</p> Signup and view all the answers

Write the output for the following block of code.

<p>3,4,8,12,15,18,21,24,24</p> Signup and view all the answers

Write the output for the following block of code.

<p>2,5,7,9,11,13,17,21,25</p> Signup and view all the answers

Study Notes

Scratch Screen Dimensions

  • Width: 480 pixels
  • Height: 360 pixels

Essential Scratch Program Components

  • All Scratch programs require sprites and scripts.

Scratch Development Environment Terminology

  • Block: Each individual instruction controlling sprites.
  • Script: A sequence of blocks forming a program for a sprite.
  • Scratch: A programming language.
  • Background changes are made via Stage Information.

Scratch Program Capabilities

  • Scratch programs can move sprites, make them speak, hide them, change their size, and play music.

Code Output Examples

  • A specific code block outputs the sequence: 2, 3, 4, 5, 8, 11, 14.
  • Another code block outputs: 4, 5, 7, 9, 12, 15, 15.
  • Yet another code block outputs: 2, 6, 8, 10, 14, 18, 18.
  • Another example outputs: 3, 5, 5, 8, 11, 13, 15, 17, 19, 21.
  • Another example outputs: 2, 5, 8, 11, 13, 15, 17, 19, 19.
  • Another example outputs: 2, 5, 5, 9, 13, 16, 19, 19.
  • Another example outputs: 4, 5, 8, 11, 14, 16, 18, 20, 20.
  • Another example outputs: 3, 4, 8, 12, 15, 18, 21, 24, 24.
  • Another example outputs: 2, 5, 7, 9, 11, 13, 17, 21, 25.

Sprite Movement and Green Flag Interaction

  • Pressing the green flag followed by the right arrow moves the sprite 20 pixels to the right.

Replacing Glide Blocks with Loops

  • A glide block moving a sprite 240 pixels horizontally and 180 pixels vertically over 6 seconds can be simulated using a repeat loop six times, changing x by 40 and y by 30 each iteration, with a 1-second wait.

Code Block Execution Time

  • A specific code block takes 33 time units to execute after the green flag is clicked.

Sprite Rotation

  • A specific code block results in a final sprite direction of 24 degrees.

Replacing Code Blocks with Loops (Example 2)

  • A series of move blocks can be replaced with nested repeat loops to achieve the same sprite movement. The exact implementation details depend on the specifics of the original move blocks.

More detailed explanations of the code would make the notes even better, and allow for better comprehension of how the loops work.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

UNIT 1 - QUIZ - Study Guide.pdf

Description

Explore the foundation of Scratch programming through this quiz. Learn about essential program components, block terminology, and what Scratch can achieve. Test your knowledge on screen dimensions, code output examples, and more!

More Like This

Use Quizgecko on...
Browser
Browser