Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
1.
|
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. | Double | d. | Single | | |
|
|
2.
|
A(n) ____ is
a whole number. a. | single | b. | floating number | c. | floating-point
number | d. | integer | | |
|
|
3.
|
Giving a
beginning value to a variable is called ____. a. | initializing | b. | creating | c. | generating | d. | introducing | | |
|
|
4.
|
When a
variable will store money amounts, where you need accuracy to the penny, you should declare the
variable as ____. a. | Currency | b. | Single | c. | Integer | d. | Long | | |
|
|
5.
|
Memory
locations whose value can change as the program is running are called ____. a. | variables | b. | globals | c. | constants | d. | memory boxes | | |
|
|
6.
|
Which of the
following is NOT a valid name for a variable? a. | sngRate | b. | strName | c. | in.Hours | d. | intHours | | |
|
|
7.
|
Variable
names must begin with ____. a. | a letter | b. | a special character | c. | an
underscore | d. | a number | | |
|
|
8.
|
Use the ____
statement to declare a local variable. a. | Declare | b. | Create | c. | Dim | d. | Public | | |
|
|
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.
|
The Dim
statement initializes Integer type variables to ____. a. | 2 | b. | null ("") | c. | 1
(one) | d. | 0 (zero) | | |
|