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
20 questions
Scratch Year 7 End of Unit Quiz

Quiz
•
7th - 8th Grade
20 questions
Scratch

Quiz
•
5th - 9th Grade
20 questions
MOS Word 2016 Learn by Doing Part 3 Formatting Paragraphs & Edit

Quiz
•
8th - 12th Grade
20 questions
Scratch - Revision

Quiz
•
6th Grade
15 questions
Micro:bit Quiz Homework Michaelmas I

Quiz
•
6th - 8th Grade
15 questions
Javascript Quiz 2

Quiz
•
11th Grade
16 questions
Scratch Loops and patterns

Quiz
•
7th - 9th Grade
20 questions
CS First Game Design Review

Quiz
•
4th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade