0% found this document useful (0 votes)
3 views

Programming a Question Activity Sheet - 1 Star

The document provides a step-by-step guide on programming a short quiz using Scratch. It outlines how to create a question, implement conditional statements, and display outcomes based on user input. Key components include using event blocks, ask blocks, operators, and conditional logic to provide feedback to users.

Uploaded by

tr.myathirilwin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Programming a Question Activity Sheet - 1 Star

The document provides a step-by-step guide on programming a short quiz using Scratch. It outlines how to create a question, implement conditional statements, and display outcomes based on user input. Key components include using event blocks, ask blocks, operators, and conditional logic to provide feedback to users.

Uploaded by

tr.myathirilwin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Programming a Question

To be able to use selection, duplication and sequencing to create a short quiz.

2. How do I ask a question?


Use the blocks below to create an
algorithm for a question. Look at how • Select the block ask and wait and
some blocks have a white, editable snap this in underneath the Events
section to create new questions and block.
answers.
• Type the multiplication question
‘What is 4 x 5?’ into the empty space.

1. How do I start the algorithm?


• Start with the
block when green
flag clicked.

3.How do I create a 4. How do I add an Operator block?


conditional statement? • Choose the Operators block with the
= inside it and nest this inside the
hexagonal space of the if…then…else…
block.

• Choose the answer block and nest this in


the left-hand side of the Operators block.

• Type the
answer ‘20’
in the right-
hand side of
if answer = 20 then the Operators
block.

• Choose the if…then…else block and else

snap this underneath the ask and


wait block.

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.

5. How do I create the outcomes?

• Select the say for 2 seconds block.


Snap this in underneath the ‘if’ part
of the conditional statement. Type
in the editable space ‘Well done!’

• Select another say for 2 seconds


block and snap this underneath the
‘else’ part of the statement. Type
‘Oops! Better luck next time.’ in the
editable space.

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

You might also like