WorksheetsVariables & Datatypes
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
This datatype is used for True False conditions.
a)
Double
b)
Boolean
c)
Integer
d)
Decimal
2.
Key word is used to declare a variable that is not changed in the execution of the program.
a)
Boolean
b)
Const
c)
Variable
d)
Static
3.
The proper syntax to declare a variable to hold a value for Pi
a)
Const dblPi as Double = 3.1415
b)
Static dblPi as Double = 3.1415
c)
Dim dblPi = 3.1415 as Constant = 3.1415
d)
Constant dblPi as Double = 3.1415
4.
The correct data type to hold the total cost of a bill is
a)
Decimal
b)
Integer
c)
Double
d)
Boolean
5.
The correct datatype to hold a student's letter grade is:
a)
String
b)
Char
c)
Integer
d)
Boolean
6.
The correct syntax for a variable that must be remembered between click events.
a)
Dim Const intCount as integer
b)
Const intCount as integer
c)
Static intCount as integer
d)
Dim Static intCount as integer
7.
A variable that is declared at the top of a program before the subroutines is
a)
local
b)
global
c)
static
d)
Boolean
8.
A variable that is only accessible inside a subroutine is:
a)
Local
b)
Global
c)
Static
d)
Constant
9.
The proper data type for a variable to hold the number of items purchased:
a)
variable
b)
integer
c)
decimal
d)
Boolean
10.
The name of the android from Star Trek:
a)
Boolean
b)
Data
c)
Android
d)
Spock
100 %
