Chapter 19: Parallel and Dynamic Universes (More on One-Dimensional Arrays)
TRUE/FALSE
1. In some applications, you may want to use an array to store items that are related but have different
data types, such as employee IDs and salary amounts.
2. All the data in an array do not have to be the same data type.
3. Variables and arrays are declared in procedures when the memory locations are needed only by the
procedure that declared them.
4. Two or more procedures in an application may need to use the same variable or array.
5. You declare class-level variables in the form’s Declarations section.
6. You declare a class-level memory location using the Dim keyword.
7. Class-level variables retain their values and remain in the computer’s internal memory until the
application ends.
8. You can determine the highest subscript in a one-dimensional array by subtracting 2 from the number
of array elements.
9. You should have each button’s Click event procedure determine the number of elements in an array.
10. For the array to be accessible by each button’s Click event procedure, it will need to be declared as a
class-level array.
11. At times, you may not know the precise number of array elements needed to store an application’s
data.