Beech - Scratch Selection

Scratch Selection
1 / 22
suivant
Slide 1: Diapositive
ComputingUpper Secondary (Key Stage 4)GCSE

Cette leçon contient 22 diapositives, avec quiz interactif et diapositives de texte.

Éléments de cette leçon

Scratch Selection

Slide 1 - Diapositive

My expectations
It's ok to be wrong

Listen when others are speaking

Slide 2 - Diapositive

Recall
Where are the variables in this code?

Slide 3 - Diapositive

Recall

Slide 4 - Diapositive

Recall
What would happen when we run this code?

Slide 5 - Diapositive

Recall
What would happen when we run this code?



The program would say the word HELLO as 100 is greater than 50.

Slide 6 - Diapositive

This program uses SELECTION
SELECTION is when you make a choice in a program.

It usually uses the words IF and ELSE
Here is another example where there are two queues for a ride.

IF you have the fast pass then you can go in the left queue.
ELSE you have to go in the other queue
Selection

Slide 7 - Diapositive

Selection

Slide 8 - Diapositive

Recall
What is the difference between these two blocks?

Slide 9 - Diapositive

This Half term

Introduction to scratch
Variables
Selection
Iteration
Lists
Games Design



Slide 10 - Diapositive

Learning objectives

Understand what selection in programming means.

Create a program in Scratch using selection.


Slide 11 - Diapositive

"Selection is a decision or question. 

At some point, a program may need to ask a question because it has reached a step where one or more options are available. 

Depending on the answer given, the program will follow a certain step and ignore the others."

Slide 12 - Diapositive

PREDICT
Predict what you think will happen.

Slide 13 - Diapositive

Predict what you think will happen.
Write down your predictions.

Slide 14 - Question ouverte

RUN
Click this link or visit 
https://scratch.mit.edu/projects/1091212900/  to run the program

Slide 15 - Diapositive

INVESTIGATE
Where are the IF blocks in Scratch

Slide 16 - Diapositive

INVESTIGATE
Where are the ASK blocks in Scratch

Slide 17 - Diapositive

INVESTIGATE
Where are the ANSWER blocks in Scratch?

Slide 18 - Diapositive

Modify
I want a program that asks a single quiz question “What is the capital city of Spain?”

If the user gets the answer correct (Madrid), then it should add 1 to the score and say “That is correct”.

If the user doesn’t answer correctly, the program should say “Incorrect”.

Your challenge is to rearrange the blocks to form a working program.

Slide 19 - Diapositive

MODIFY
Creating a quiz

Here we can put SELECTION blocks inside each other to make a simple multiple choice question.

This is triggered when a sprite is clicked.

Slide 20 - Diapositive

MODIFY
A points system

You can even create a variable and add 1 to it every time you get a question correct

Slide 21 - Diapositive

Make
Write a program in Scratch that acts as a quiz. The quiz should have multiple questions.
 
 
 
Consider adding variables to your quiz so that the player gets points for each question they get correct.

Slide 22 - Diapositive