NEW
Font size
WorksheetsCalculator in Scratch Code
Total questions: 14
Worksheet time: 7mins
In the Scratch math quiz, which block starts the program when clicked?
when green flag clicked
when space key pressed
when sprite clicked
when backdrop switches to city
What is the purpose of setting the variable score to 0 at the start of the program?
It initializes the score so the quiz begins at zero.
It randomly chooses the first question.
It resets the sprite's position on the stage.
It selects the arithmetic operator.
The variable problemsAttempted is set to 0 at the beginning. What does this track?
How many questions the player has tried
How many correct answers the player has
Which operator is currently used
The time remaining in the quiz
Which blocks choose the two random numbers used in each math question?
set [number1] to pick random 1 to 10 and set [number2] to pick random 1 to 10
set [score] to pick random 1 to 10 and set [operator] to pick random 1 to 2
set [answer] to join number1 operator number2 and set [useAnswer] to answer
set [problemsAttempted] to pick random 1 to 10 and set [wait] to pick random 1 to 2
What does the variable operator store in this quiz?
A random choice between addition and subtraction
The number of questions attempted
The player's typed answer string
The product of number1 and number2
According to the comments, what does operator=1 represent and operator=2 represent?
1 means addition (+); 2 means subtraction (−)
1 means subtraction (−); 2 means addition (+)
1 means multiplication (×); 2 means division (÷)
1 means division (÷); 2 means multiplication (×)
Which block asks the player the math question and waits for input?
ask [join number1 operatorSymbol number2] and wait
say [That's Correct!] for 2 seconds
set [score] to 1
broadcast [new question]
What does useAnswer store after the 'ask ... and wait' block runs?
The player's typed answer from the answer box
The correct computed result of the problem
The chosen operator symbol
The current score value
How is the correct answer computed before checking the user's input?
Using a variable correctAnswer that equals number1 ± number2 based on operator
By reading the answer bubble from the sprite
By multiplying score by problemsAttempted
By converting the operator into text only
Which conditional structure is used to decide whether the user's answer is correct or incorrect?
if
repeat until
wait until
forever if
What happens to the score when the player answers correctly?
change score by 1
set score to 0
change problemsAttempted by −1
set number1 to score
What feedback does the program give when the answer is incorrect?
It says 'Oops! That's incorrect! The correct answer is [correctAnswer]'
It restarts the program automatically
It hides the sprite and stops all scripts
It adds 2 points to the score
Which loop structure keeps generating new math questions continuously?
forever
repeat 10
repeat until
wait until
Which string-building technique is used to display 'number1 operatorSymbol number2' in the ask prompt?
join block concatenates number1, operatorSymbol, and number2
broadcast block merges the variables automatically
add block calculates the sum and shows it
glide block moves the sprite while showing text
