Name:     ID: 
 
    Email: 

Visual Basic Quiz IV

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

 1. 

Variable names must begin with ____.
a.
an underscore
b.
a letter
c.
a special character
d.
a number
 

 2. 

When a variable will store money amounts, where you need accuracy to the penny, you should declare the variable as ____.
a.
Single
b.
Currency
c.
Long
d.
Integer
 

 3. 

Which of the following is NOT a valid name for a variable?
a.
in.Hours
b.
sngRate
c.
strName
d.
intHours
 

 4. 

A(n) ____ is a whole number.
a.
floating number
b.
integer
c.
floating-point number
d.
single
 

 5. 

Memory locations whose value can change as the program is running are called ____.
a.
globals
b.
constants
c.
memory boxes
d.
variables
 

 6. 

Giving a beginning value to a variable is called ____.
a.
initializing
b.
creating
c.
generating
d.
introducing
 

 7. 

The Dim statement initializes Integer type variables to ____.
a.
null ("")
b.
1 (one)
c.
0 (zero)
d.
2
 

 8. 

Use the ____ statement to declare a local variable.
a.
Declare
b.
Public
c.
Create
d.
Dim
 

 9. 

A(n) ____ variable can be used only by the event procedure in which it is declared.
a.
local
b.
event
c.
application
d.
form-level
 

 10. 

If you don't assign a specific data type to a variable, Visual Basic assigns the ____ data type to it.
a.
Variant
b.
Integer
c.
Single
d.
Double
 



 
Submit          Reset Help