Small basic assesment - New

Small basic assessment
1 / 14
volgende
Slide 1: Tekstslide
ComputingLower Secondary (Key Stage 3)

In deze les zitten 14 slides, met interactieve quizzen en tekstslides.

Onderdelen in deze les

Small basic assessment

Slide 1 - Tekstslide

Deze slide heeft geen instructies

Why do we use if Statements in programming?
Why do we use if Statements in programming?
Extension
click this extension or read the revision sheet

Slide 2 - Open vraag

Deze slide heeft geen instructies

So our programs can make decisions based on conditions!

Slide 3 - Tekstslide

Deze slide heeft geen instructies

Lesson Objective : 

Apply your programming knowledge to the assessment.

Slide 4 - Tekstslide

Deze slide heeft geen instructies

If statements use variables and information users enter to make decisions based on conditions

Programs like Minecraft need to use If statements so the program can make decisions based on what the user does 

For example: 

  • If the player walks into lava, then the game takes damage away.
  • If it becomes night, then mobs start to spawn. 
  • If the player breaks a block, then the block drops an item. 

  • Without If statements, the game wouldn’t react to anything - it would just run in a straight sequence

  • If statements allow the game world to change, respond, and behave differently depending on conditions.

Slide 5 - Tekstslide

Deze slide heeft geen instructies

A variable is a method of...
A variable is a method of...
A
Writing text to the screen
B
Searching for errors
C
Storing information in the Computers memory
D
Making decisions in our programs

Slide 6 - Quizvraag

Why?

What kind of information would we need to store about our player in Minecraft. e.g health?
A variable is a named box in the computer’s memory where we can store a value so we can use it later.
Think of a variable like a labelled box.
  • The label is the name of the variable.
  • The information you put in the box is the value.
  • Our variable name should relate to the value stored inside. 

Slide 7 - Tekstslide

Deze slide heeft geen instructies


What is the purpose of this line of code in SmallBasic?
A
Write text to the screen
B
Allows the user to input information into the program
C
Change the colour of the turtle pen
D
Stop the turtle from drawing

Slide 8 - Quizvraag

Deze slide heeft geen instructies

Slide 9 - Tekstslide

Deze slide heeft geen instructies

Which line of code moves the turtle 200 pixels forward?
Which line of code moves the turtle 200 pixels forward?
A
Turtle.Move(100)
B
Turtle.Turn(200)
C
Turtle.PenUp()
D
Turtle.Move(200)

Slide 10 - Quizvraag

Deze slide heeft geen instructies


What text will this code print if the user inputs 12?
A
You are an adult
B
Nothing
C
12
D
You are a child

Slide 11 - Quizvraag

Deze slide heeft geen instructies

Slide 12 - Tekstslide

Deze slide heeft geen instructies

Drag and drop the missing code to fill in the gaps

Slide 13 - Sleepvraag

Deze slide heeft geen instructies

Assessment




Before submitting your assessment raise your hand for me to come check your work!


Extension



Slide 14 - Tekstslide

Deze slide heeft geen instructies