Scratch Programming Quiz: Basics of Code

Quiz
•
Computers
•
6th Grade
•
Hard
Mr Vallally-Godfrey
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a variable in Scratch?
A command that repeats actions
A container that stores information, like a number or word
A sprite that moves on the stage
A background image
Answer explanation
In Scratch, a variable is best described as a container that stores information, such as numbers or words. This allows users to keep track of data and use it in their programs, unlike commands, sprites, or backgrounds.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an 'if' statement in programming?
To repeat actions forever
To store information
To make decisions based on conditions
To draw shapes
Answer explanation
An 'if' statement is used in programming to make decisions based on conditions. It allows the program to execute certain actions only if specific criteria are met, making it essential for controlling the flow of execution.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which block in Scratch would you use to repeat a set of actions a certain number of times?
If block
Repeat block
Variable block
Say block
Answer explanation
The Repeat block in Scratch is specifically designed to execute a set of actions multiple times, making it the correct choice for this question. The other blocks serve different purposes and do not repeat actions.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct sequence of actions if you want a sprite to move 10 steps and then say "Hello"?
Say "Hello", then move 10 steps
Move 10 steps, then say "Hello"
Move 5 steps, then say "Hello"
Say "Goodbye", then move 10 steps
Answer explanation
To have a sprite move 10 steps and then say 'Hello', the correct sequence is to first move 10 steps and then say 'Hello'. This ensures the movement occurs before the speech, aligning with the desired action order.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to store the number of times a sprite jumps, which Scratch feature should you use?
A sound block
A variable
A costume
A backdrop
Answer explanation
To store the number of times a sprite jumps, you should use a variable. Variables in Scratch can hold numerical values, making them ideal for counting actions like jumps.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of selection in programming?
Repeating a dance 5 times
Moving forward 10 steps
If touching edge, bounce
Changing the background
Answer explanation
The correct choice, 'If touching edge, bounce', demonstrates selection in programming by using a conditional statement to determine an action based on a specific condition, unlike the other options which do not involve decision-making.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following Scratch code do?
```
if
Always says "You win!"
Says "You win!" only if the score is greater than 10
Says "You win!" if the score is less than 10
Never says "You win!"
Answer explanation
The code checks if the score is greater than 10. If true, it executes the 'say' command, displaying 'You win!'. Therefore, it only says 'You win!' when the score exceeds 10, making the correct choice the second option.
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Scratch Concepts

Quiz
•
8th Grade
15 questions
Programming Quiz

Quiz
•
7th - 8th Grade
24 questions
1A Quiz on Game Design with Scratch

Quiz
•
5th - 9th Grade
16 questions
Scratch Loops and patterns

Quiz
•
7th - 9th Grade
16 questions
Scratch Motion and Control Blocks

Quiz
•
6th - 8th Grade
15 questions
Scratch

Quiz
•
6th - 8th Grade
20 questions
Scratch

Quiz
•
5th - 9th Grade
20 questions
Scratch Test

Quiz
•
7th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Adding and Subtracting Integers

Quiz
•
6th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade