WorksheetsY7 HWK3 : Variables
Total questions: 12
Worksheet time: 9mins
Which description best describes a variable?
A Variable is a type of programming language
A variable is a name that refers to data being stored by the computer
A variable is a name for block in scratch.
A variable is a secret code.
When is the best time to use a variable?
When we do know what data we need to save
when we do not know what data we need to save
when we know the type of data we will save, but not exactly what it will be.
Variables cannot...
have a name
store more than one value
be empty
be used in programs
running instructions in order is known as (a)
In programming what is meant my Iteration
making choices and following them
running instructions in order
doing the same thing more than once
In programming what is meant my Selection
making choices and following them
running instructions in order
doing the same thing more than once
What is an algorithm
a computer program
A series of instructions that solve a problem
A way to create computers
What does this scratch program do?
says 'Hello, world!'
says 'Hello, world!' over and over again
when you press the green flag it says 'Hello, world!' once
when you press the green flay it says 'Hello, world!' over and over again.
a (a) is a place in memory we can save data, that can change.
What are the variables in this program?
name and answer
Hello and name
hello and answer
name and 2
If, when prompted you type in 'Bob', what will the program say?
nothing
hello bob
Hello!
Bob
Hello!Bob
What should i call my variable if i want to store someones name?
Age
Bob
Name
[The persons name goes here]
