Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Variables Recap

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.
Somewhere to store data in your program
a)
Data Type
b)
Variable
2.
You can give 2 variables the same name
a)
True
b)
False
3.
What would you call this variable?
Storing someone's age
a)
age
b)
num1
c)
variable
4.
What would you call this variable?
Storing someone's name
a)
name
b)
dim
c)
variable
5.
What would you call this variable?
Storing your password
a)
password
b)
variable1
6.
When we make a variable, why do we give it a name?
a)
For fun
b)
So that you can easily find it in your code
c)
To make your code look neat
7.
What is the name of the variable?
Dim shop As String
a)
Dim
b)
shop
c)
String
d)
As
8.
What is the name of the variable?
Dim yeargroup As Integer
a)
Dim
b)
yeargroup
c)
Integer
d)
As
9.
pet age is a good variable name
a)
True
b)
False
10.
petage is a good variable name
a)
True
b)
False
11.
Why can you not have a space in a variable name?
e.g. formroom  NOT  form room
a)
It thinks they are 2 different variables
b)
It looks untidy in the code
12.
What code do you use to Declare a variable?
a)
Dim
b)
Declare