Programming a Question
To be able to use selection, duplication and sequencing to create a short quiz.
Use the useful blocks provided to create an algorithm for a question.
Look at how some blocks have a white, editable section to create new questions and
answers.
1. How do I start the 2. How do I ask a question?
algorithm? A new coding block is needed to ask a
question. Use a Sensing block for this.
Start with an Events block so that Remember to type in the multiplication
when the green flag is clicked, the quiz question in the editable space.
can start.
3. How do I create a
conditional statement?
A Control block will need to be added
underneath the question block to begin
the conditional statement.
Computing | Coding with Scratch: Questions and Quizzes | A Short Quiz | Lesson 2 visit twinkl.com
Programming a Question
To be able to use selection, duplication and sequencing to create a short quiz.
4. How do I add an Operators block?
Select a hexagonal Operators block and
nest the answer block inside the blank
space on the left. Then, nest the completed
block inside the Control block. Make sure
you have typed in the correct answer to
your question.
5. How do I create the outcomes?
Add two Looks blocks inside the Control block.
Challenge:
Can you use a Looks block to ask some open questions for the host to ask before the
quiz begins?
Computing | Coding with Scratch: Questions and Quizzes | A Short Quiz | Lesson 2 visit twinkl.com
Programming a Question
To be able to use selection, duplication and sequencing to create a short quiz.
I can:
start a quiz by using an Events block;
type a question into an ask block;
use a conditional if…then…else… block;
insert an Operators block to set the correct answer;
display a message to congratulate players when they type the correct answer;
display a message to let players know they have typed the incorrect answer.
Computing | Coding with Scratch: Questions and Quizzes | A Short Quiz | Lesson 2 visit twinkl.com