Chapter 18 Study Guide
In an array, another term for subscript is _______
index
A group of related variables that have the same name and data type and are stored in consecutive locations in the computer's internal memory
array
When you group together related variables, the group is referred to as a _______ of variables
array
The first variable in a one-dimensional array is assigned a subscript of _______
0
The _______ method reverses the order of the values stored in a one-dimensional array
Array.Reverse
To sort a one-dimensional array in descending order, you first sort the values in ascending order, and then use the _______ method to reverse the array elements
Array.Reverse
The _______ method sorts the values stored in a one-dimensional array in ascending order
Array.Sort
To sort the values to an array in ascending order, you use the _______ method
Array.Sort
The intItems array is declared using the Dim intItems(20) As Integer statement. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses tells the computer to process the loop instructions for each element in the array?
Do While intSub <= 20
A _______ event occurs when an application is started and the form is displayed the first time
Load
A form's _______ event occurs when an application is started and the form is displayed the first time
Load
_______ is the process of arranging data in a specific order
Sorting
A _______ is a group of related variables that have the same name and data type and are stored in consecutive locations in the computer's internal memory
array
An array declared in the form's Declarations section that remains in memory until the application ends
class-level array
The variables in an array
elements
The variables in an array are called _______
elements
An array variable's subscript appears in brackets after the array's name
false
If the subscript of an array is not in the acceptable range, the procedure should try to access the array element to verify the correct range
false
In most cases, arrays are declared in a procedure rather than in a form's Declarations section
false
In the cases when you encounter situations where some variables are related, it is easier and more efficient to treat the related variables separately
false
Superscripts are assigned by the computer when an array is created in internal memory
false
The elements in a numeric array are initialized to the number 1
false
You use the Dim keyword to create a class-level array
false
Which of the following assigns the strNames array's highest subscript to the intLastSub variable?
intLastSub = strNames.Length - 1
Which of the following displays the number of elements contained in the intItems array?
lblCount.Text = intItems.Length
The _______ property is a property of a one-dimensional array that stores an integer that represents the number of array elements
length
One of the properties of a one-dimensional array that stores an integer that represents the number of array elements
length property
Occurs when an application is started and the form is displayed the first time
load event
An array whose elements are identified by a unique subscript
one-dimensional array
Assigning initial values to an array is often referred to as _______ the array
populating
The process of initializing the elements in an array is referred to as _______ the array
populating
An array declared in a procedure that is removed from memory until the application ends
procedure-level array
If a subscript is valid, it is said to be in _______
range
A simple variable, also called a _______ variable, is one that is unrelated to any other variable in memory
scalar
A variable that is unrelated to any other variable in the computer's internal memory
simple variable
A _______ variable is a variable that is unrelated to any other variable in the computer's internal memory
simple/scalar
Arranging data in a specific order is called _______
sorting
The process of arranging data in a specific order
sorting
Which of the following assigns the string "Micki" to the fifth element in a one-dimensional array named strPetNames?
strPetNames(4) = "Micki"
A unique integer that identifies the position of an element in an array
subscript
The _______ indicates the variable's position in an array
subscript
A _______ is a unique integer that identifies the position of an element in an array
subscript/index
All of the variables in an array have the same name and data type, but a different subscript
true
At times, you will encounter situations where some of the variables in an application are related to each other
true
Each variable in an array has the same name and data type
true
In most applications, the values stored in an array come from a file on the computer's disk and are assigned to the array after it is declared
true
The number of elements is always one number more than the array's highest subscript
true
To refer to the first variable in a one-dimensional String array named strFriends, you use strFriends (0) --read "strFriends sub zero"
true
When an array is sorted in descending order, the first element in the array contains the largest value and the last element contains the smallest value
true
You use the Private keyword to create a class-level array
true