Deck 18: A Ray of Sunshine One-Dimensional Arrays
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 18: A Ray of Sunshine One-Dimensional Arrays
1
Superscripts are assigned by the computer when an array is created in internal memory.
False
2
The most commonly used arrays in business applications are three-dimensional.
False
3
You distinguish one variable in a one-dimensional array from another variable in the array using a unique number, called a(n) ____.
A) superscript
C) array identifier
B) identifier
D) subscript
A) superscript
C) array identifier
B) identifier
D) subscript
D
4
When you group together related variables, the group is referred to as a(n) ____ of variables.
A) array
C) set
B) group
D) collection
A) array
C) set
B) group
D) collection
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The first variable in a one-dimensional array is assigned a subscript of ____.
A) 0
C) 2
B) 1
D) 3
A) 0
C) 2
B) 1
D) 3
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
At times, you will encounter situations where some of the variables in an application are related to each other.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
To refer to the first variable in a one-dimensional String array named strFriends, you use strFriends(0)-read "strFriends sub zero."
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
To sort the values in a one-dimensional array in ascending order, you use the ____ method.
A) Array.Order
C) Array.Sort
B) Array.Arrange
D) Array.Organize
A) Array.Order
C) Array.Sort
B) Array.Arrange
D) Array.Organize
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Each variable in an array has the same name and data type.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The ____ indicates the variable's position in the array.
A) superscript
C) array identifier
B) subscript
D) identifier
A) superscript
C) array identifier
B) subscript
D) identifier
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
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.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
The elements in a numeric array are initialized to the number 1.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
The contents of the variables (elements) in an array cannot be displayed.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Arranging data in a specific order is called ____.
A) arranging
C) organizing
B) ordering
D) sorting
A) arranging
C) organizing
B) ordering
D) sorting
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Assigning initial values to an array is often referred to as ____ the array.
A) populating
C) inserting
B) initialing
D) filling
A) populating
C) inserting
B) initialing
D) filling
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
The For…Next statement is not appropriate when you do not know the exact number of times the loop instructions should be repeated.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
A simple variable, also called a ____ variable, is one that is unrelated to any other variable in memory.
A) scale
C) scalar
B) scaling
D) plain
A) scale
C) scalar
B) scaling
D) plain
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
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.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
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.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
In the cases when you encounter situations where some variables are related, it is easier and more efficient to treat the related variables separately.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
If a subscript is valid, it is said to be in ____.
A) order
C) index
B) value
D) range
A) order
C) index
B) value
D) range
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
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.
A) Array.Reverse
C) Array.Descending
B) Array.Change
D) Array.Flip
A) Array.Reverse
C) Array.Descending
B) Array.Change
D) Array.Flip
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Attempting to access an element with an invalid subscript results in a(n) ____.
A) warning
C) increase in array size
B) runtime error
D) code correction
A) warning
C) increase in array size
B) runtime error
D) code correction
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
The ____ statement assigns the content of txtState.text.toupper to strSearchFor.
A) strSearchFor = txtState.text.toupper
B) txtState.text.toupper = strSearchFor
C) strSearchFor > txtState.text.toupper
D) txtState.text.toupper > strSearchFor
A) strSearchFor = txtState.text.toupper
B) txtState.text.toupper = strSearchFor
C) strSearchFor > txtState.text.toupper
D) txtState.text.toupper > strSearchFor
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
In an array, another term for subscript is ____.
A) catalog
C) index
B) guide
D) key
A) catalog
C) index
B) guide
D) key
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck