Deck 18: A Ray of Sunshine One-Dimensional Arrays

ملء الشاشة (f)
exit full mode
سؤال
Superscripts are assigned by the computer when an array is created in internal memory.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The most commonly used arrays in business applications are three-dimensional.
سؤال
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
سؤال
When you group together related variables, the group is referred to as a(n) ____ of variables.

A) array
C) set
B) group
D) collection
سؤال
The first variable in a one-dimensional array is assigned a subscript of ____.

A) 0
C) 2
B) 1
D) 3
سؤال
At times, you will encounter situations where some of the variables in an application are related to each other.
سؤال
To refer to the first variable in a one-dimensional String array named strFriends, you use strFriends(0)-read "strFriends sub zero."
سؤال
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
سؤال
Each variable in an array has the same name and data type.
سؤال
The ____ indicates the variable's position in the array.

A) superscript
C) array identifier
B) subscript
D) identifier
سؤال
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.
سؤال
The elements in a numeric array are initialized to the number 1.
سؤال
The contents of the variables (elements) in an array cannot be displayed.
سؤال
Arranging data in a specific order is called ____.

A) arranging
C) organizing
B) ordering
D) sorting
سؤال
Assigning initial values to an array is often referred to as ____ the array.

A) populating
C) inserting
B) initialing
D) filling
سؤال
The For…Next statement is not appropriate when you do not know the exact number of times the loop instructions should be repeated.
سؤال
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
سؤال
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.
سؤال
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.
سؤال
In the cases when you encounter situations where some variables are related, it is easier and more efficient to treat the related variables separately.
سؤال
If a subscript is valid, it is said to be in ____.

A) order
C) index
B) value
D) range
سؤال
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
سؤال
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
سؤال
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
سؤال
In an array, another term for subscript is ____.

A) catalog
C) index
B) guide
D) key
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
At times, you will encounter situations where some of the variables in an application are related to each other.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Each variable in an array has the same name and data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
The ____ indicates the variable's position in the array.

A) superscript
C) array identifier
B) subscript
D) identifier
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
The elements in a numeric array are initialized to the number 1.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
The contents of the variables (elements) in an array cannot be displayed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Arranging data in a specific order is called ____.

A) arranging
C) organizing
B) ordering
D) sorting
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
If a subscript is valid, it is said to be in ____.

A) order
C) index
B) value
D) range
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
In an array, another term for subscript is ____.

A) catalog
C) index
B) guide
D) key
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.