Online Coding Lessons Scratch and Block-Based Coding 1 — Questions and Answers
Question 1: What is Scratch primarily used for?
- Building websites
- Teaching programming through visual block-based coding (Correct answer)
- Managing databases
- Designing graphics
Correct answer: Teaching programming through visual block-based coding
Scratch is a visual, block-based programming language developed by MIT to teach coding concepts to beginners.
Question 2: In Scratch, what is a 'sprite'?
- A type of loop
- A background image
- A character or object that can be programmed (Correct answer)
- A sound effect
Correct answer: A character or object that can be programmed
A sprite in Scratch is a character or object that you can program with scripts to move, speak, and interact.
Question 3: Which block category in Scratch controls character movement?
- Looks
- Events
- Motion (Correct answer)
- Control
Correct answer: Motion
The 'Motion' block category in Scratch contains blocks for moving, turning, and positioning sprites.
Question 4: What does the 'When green flag clicked' block do in Scratch?
- Stops the program
- Changes the backdrop
- Starts the program/script when the green flag is pressed (Correct answer)
- Plays a sound
Correct answer: Starts the program/script when the green flag is pressed
The 'When green flag clicked' event block triggers a script to run when the user clicks the green flag to start the project.
Question 5: What is a 'loop' used for in Scratch?
- To stop a script
- To repeat a set of blocks multiple times (Correct answer)
- To change a sprite's costume
- To play music
Correct answer: To repeat a set of blocks multiple times
A loop in Scratch (like 'repeat' or 'forever') is used to execute a set of blocks multiple times without writing them out repeatedly.
Question 6: What does the 'say' block do in Scratch?
- Records audio
- Displays a speech bubble with text on the sprite (Correct answer)
- Changes sprite size
- Makes the sprite disappear
Correct answer: Displays a speech bubble with text on the sprite
The 'say' block in Scratch makes a speech bubble with the specified text appear above the sprite on the stage.
What is Scratch primarily used for?