Deck 19: Parallel and Dynamic Universes More on One-Dimensional Arrays

Full screen (f)
exit full mode
Question
Variables and arrays are declared in procedures when the memory locations are needed only by the procedure that declared them.
Use Space or
up arrow
down arrow
to flip the card.
Question
If you use the ReDim statement to reduce the size of an array, the values in the truncated elements are saved.
Question
A form's Declarations section begins with the ____ Class clause in the Code Editor window.

A) Begin
C) Open
B) Public
D) Start
Question
Variables declared in a form's Declarations section are referred to as ____ variables.

A) global
C) class-level
B) local-level
D) program-level
Question
You can determine the highest subscript in a one-dimensional array by subtracting 2 from the number of array elements.
Question
At times, you may not know the precise number of array elements needed to store an application's data.
Question
All the data in an array do not have to be the same data type.
Question
Scope refers to the area where a memory location is recognized by an application's code.
Question
The elements in a parallel array are related by their ____.

A) classes
C) superscripts
B) data types
D) subscripts
Question
A form's Declarations section ends with the ____ Class clause in the Code Editor window.

A) Public
C) Close
B) Stop
D) End
Question
You declare a class-level memory location using the Dim keyword.
Question
For the array to be accessible by each button's Click event procedure, it will need to be declared as a class-level array.
Question
Although the ReDim statement allows you to make an array either larger or smaller, in most cases you will use it to decrease the size of the array.
Question
You should have each button's Click event procedure determine the number of elements in an array.
Question
____ arrays are two or more arrays whose elements are related by their position in the arrays.

A) Parallel
C) Equivalent
B) Connected
D) Comparable
Question
When two or more procedures in an application may need to use the same variable or array, you can declare the memory locations in the form's ____ section.

A) Memory
C) Declarations
B) Storage
D) Statements
Question
Two or more procedures in an application may need to use the same variable or array.
Question
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.
Question
The ____ statement is used when you know the exact number of times the loop instructions should be processed.

A) Do…While
C) For…Until
B) For…Next
D) Do…Until
Question
Variables and arrays declared in a form's Declarations section have ____ scope.

A) class
C) global
B) program
D) location
Question
An array whose number of elements changes while an application is running is referred to as a(n) ____ array.

A) dynamic
C) active
B) updating
D) renewing
Question
The optional ____ keyword in the syntax of the ReDim statement tells the computer to keep the current array values when the size of the array changes.

A) Keep
C) Save
B) Protect
D) Preserve
Question
An empty array is declared using an empty set of ____.

A) slashes
C) braces
B) brackets
D) curly braces
Question
An empty array is an array that contains no ____.

A) data
C) memory
B) indexes
D) elements
Question
You can change the number of elements in an array while the application is running using the ____ statement.

A) ReDo
C) ReDim
B) DoDim
D) ReFit
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 19: Parallel and Dynamic Universes More on One-Dimensional Arrays
1
Variables and arrays are declared in procedures when the memory locations are needed only by the procedure that declared them.
True
2
If you use the ReDim statement to reduce the size of an array, the values in the truncated elements are saved.
False
3
A form's Declarations section begins with the ____ Class clause in the Code Editor window.

A) Begin
C) Open
B) Public
D) Start
B
4
Variables declared in a form's Declarations section are referred to as ____ variables.

A) global
C) class-level
B) local-level
D) program-level
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
You can determine the highest subscript in a one-dimensional array by subtracting 2 from the number of array elements.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
At times, you may not know the precise number of array elements needed to store an application's data.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
All the data in an array do not have to be the same data type.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Scope refers to the area where a memory location is recognized by an application's code.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
The elements in a parallel array are related by their ____.

A) classes
C) superscripts
B) data types
D) subscripts
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
A form's Declarations section ends with the ____ Class clause in the Code Editor window.

A) Public
C) Close
B) Stop
D) End
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
You declare a class-level memory location using the Dim keyword.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
For the array to be accessible by each button's Click event procedure, it will need to be declared as a class-level array.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Although the ReDim statement allows you to make an array either larger or smaller, in most cases you will use it to decrease the size of the array.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
You should have each button's Click event procedure determine the number of elements in an array.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
____ arrays are two or more arrays whose elements are related by their position in the arrays.

A) Parallel
C) Equivalent
B) Connected
D) Comparable
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
When two or more procedures in an application may need to use the same variable or array, you can declare the memory locations in the form's ____ section.

A) Memory
C) Declarations
B) Storage
D) Statements
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Two or more procedures in an application may need to use the same variable or array.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
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.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
The ____ statement is used when you know the exact number of times the loop instructions should be processed.

A) Do…While
C) For…Until
B) For…Next
D) Do…Until
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Variables and arrays declared in a form's Declarations section have ____ scope.

A) class
C) global
B) program
D) location
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
An array whose number of elements changes while an application is running is referred to as a(n) ____ array.

A) dynamic
C) active
B) updating
D) renewing
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
The optional ____ keyword in the syntax of the ReDim statement tells the computer to keep the current array values when the size of the array changes.

A) Keep
C) Save
B) Protect
D) Preserve
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
An empty array is declared using an empty set of ____.

A) slashes
C) braces
B) brackets
D) curly braces
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
An empty array is an array that contains no ____.

A) data
C) memory
B) indexes
D) elements
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
You can change the number of elements in an array while the application is running using the ____ statement.

A) ReDo
C) ReDim
B) DoDim
D) ReFit
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.