Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
1.
|
Which of the
following is NOT a valid name for a variable? a. | intHours | b. | sngRate | c. | in.Hours | d. | strName | | |
|
|
2.
|
When a
variable will store money amounts, where you need accuracy to the penny, you should declare the
variable as ____. a. | Currency | b. | Integer | c. | Long | d. | Single | | |
|
|
3.
|
Variable
names must begin with ____. a. | a number | b. | an underscore | c. | a
letter | d. | a special character | | |
|
|
4.
|
A(n) ____ is
a whole number. a. | single | b. | floating number | c. | floating-point
number | d. | integer | | |
|
|
5.
|
The Dim
statement initializes Integer type variables to ____. a. | 2 | b. | 1 (one) | c. | null ("") | d. | 0
(zero) | | |
|
|
6.
|
Use the ____
statement to declare a local variable. a. | Public | b. | Dim | c. | Create | d. | Declare | | |
|
|
7.
|
A(n) ____
variable can be used only by the event procedure in which it is declared. a. | application | b. | form-level | c. | event | d. | local | | |
|
|
8.
|
Giving a
beginning value to a variable is called ____. a. | generating | b. | initializing | c. | introducing | d. | creating | | |
|
|
9.
|
Memory
locations whose value can change as the program is running are called ____. a. | memory
boxes | b. | globals | c. | constants | d. | variables | | |
|
|
10.
|
If you don't
assign a specific data type to a variable, Visual Basic assigns the ____ data type to
it. a. | Integer | b. | Variant | c. | Single | d. | Double | | |
|