Beech - Scratch Selection

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

This lesson contains 22 slides, with interactive quiz and text slides.

Items in this lesson

Scratch Selection

Slide 1 - Slide

My expectations
It's ok to be wrong

Listen when others are speaking

Slide 2 - Slide

Recall
Where are the variables in this code?

Slide 3 - Slide

Recall

Slide 4 - Slide

Recall
What would happen when we run this code?

Slide 5 - Slide

Recall
What would happen when we run this code?



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

Slide 6 - Slide

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 - Slide

Selection

Slide 8 - Slide

Recall
What is the difference between these two blocks?

Slide 9 - Slide

This Half term

Introduction to scratch
Variables
Selection
Iteration
Lists
Games Design



Slide 10 - Slide

Learning objectives

Understand what selection in programming means.

Create a program in Scratch using selection.


Slide 11 - Slide

"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 - Slide

PREDICT
Predict what you think will happen.

Slide 13 - Slide

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

Slide 14 - Open question

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

Slide 15 - Slide

INVESTIGATE
Where are the IF blocks in Scratch

Slide 16 - Slide

INVESTIGATE
Where are the ASK blocks in Scratch

Slide 17 - Slide

INVESTIGATE
Where are the ANSWER blocks in Scratch?

Slide 18 - Slide

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 - Slide

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 - Slide

MODIFY
A points system

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

Slide 21 - Slide

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 - Slide