Deck 6: Arrays

ملء الشاشة (f)
exit full mode
سؤال
An array is a(n)____ of values in computer memory.

A)list
B)accumulation
C)set
D)record
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
An array can be used to replace ____.

A)records
B)methods
C)nested decisions
D)loops
سؤال
You use subscripts 1 through 10 to access the elements in a ten element array.
سؤال
The number of elements in an array is called the ____ of the array.

A)width
B)size
C)height
D)depth
سؤال
Many newer programming languages such as C++, Java, and C# use subscript 1 to access the first element of the array.
سؤال
A(n)____ is another name for a subscript.

A)pointer
B)sequence
C)index
D)place holder
سؤال
You can improve the efficiency of a program by leaving a loop as soon as a match is found in the array.
سؤال
Providing array values is sometimes called ____.

A)creating the array
B)declaring the array
C)accumulating the array
D)populating the array
سؤال
All array elements have the same group ____.

A)subscript
B)name
C)memory location
D)value
سؤال
Suppose that you have declared a numeric array named numbers, and two of its elements are numbers[1] and numbers[5]. You know that ____.

A)numbers[1] is smaller than numbers[5]
B)there are exactly four elements between those two elements
C)numbers[5] is the last element in the array
D)there are exactly three elements between those two elements
سؤال
A parallel array is an array that stores another array in each element.
سؤال
Arrays cannot be used if you need to search for a range of values.
سؤال
When you have a five element array and use subscript 6, your subscript is said to be out of bounds.
سؤال
In all languages, subscript values must be sequential ____.

A)characters
B)fractions
C)real numbers
D)integers
سؤال
A program contains an array that holds all the names of the days of the week. Which of the following is true?

A)The highest subscript is 6.
B)The highest subscript is 7.
C)The lowest subscript is 1.
D)The highest subscript is 12.
سؤال
Parallel arrays must contain the same data type.
سؤال
Declaring a named constant makes code easier to modify and understand.
سؤال
Array elements all have the same ____ in common.

A)pointer
B)memory location
C)value
D)data type
سؤال
The for loop is a good tool when working with arrays because you frequently need to process every element of an array from beginning to end.
سؤال
Many newer programming languages such as C++, Java, and C# use the square bracket notation for arrays.
سؤال
To search an array for a(n)____ match, you can store either the highest or lowest value of each range for comparison.

A)flag
B)index
C)subscript
D)range
سؤال
A ____ search starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower.

A)linear
B)binary
C)quadratic
D)divided
سؤال
A subscript, also called a(n)____________________, is a number that indicates the position of a particular item within an array.
سؤال
The number of bytes in an array is always a multiple of the number of ____ in an array.

A)subscripts
B)elements
C)iterators
D)indexes
سؤال
Parallel arrays are most useful when value pairs have a(n)____ relationship.

A)direct
B)indirect
C)linked
D)tiered
سؤال
Which statement is true of arrays?

A)Only whole numbers can be used as array subscripts.
B)Only whole numbers can be stored in arrays.
C)Arrays cause more work for the programmer, but allow faster program execution.
D)Array elements cannot be reset after the array is declared.
سؤال
The true benefit of using an array lies in your ability to use a ____ as a subscript to the array.

A)constant
B)loop
C)command
D)variable
سؤال
In every programming language, when you access data stored in an array, you must use a ____ containing a value that accesses memory occupied by the array.

A)superscript
B)subscript
C)key
D)condition
سؤال
When you search through a list from one end to the other, you are performing a ____.

A)linear search
B)binary search
C)quadratic search
D)single lookup
سؤال
When working with arrays, you can use ____________________ in several ways: To hold the size of an array, as the array values, and as a subscript .
سؤال
A(n)____________________ is a variable set to indicate whether some event has occurred.
سؤال
One advantage to using a named constant is that the statement becomes ____.

A)self-perpetuating
B)self-documenting
C)self-referencing
D)self-mitigating
سؤال
Use a(n)____________________ to indicate the position of a particular item within an array.
سؤال
If you declare a variable to be Boolean, you can set its value to ____.

A)any number
B)true or false
C)any integer
D)1 or -1
سؤال
Every array has a(n)____ size.

A)infinite
B)finite
C)variable
D)constant
سؤال
Besides making your code easier to modify, using a ____ makes the code easier to understand.

A)standard constant
B)named constant
C)literal constant
D)named variable
سؤال
Named ____ hold values that do not change during a program's execution.

A)constants
B)variables
C)objects
D)items
سؤال
A ____ relates parallel arrays.

A)superscript
B)key
C)subscript
D)postscript
سؤال
When a subscript is not within the range of acceptable subscripts, it is said to be ____.

A)a superscript
B)flagged
C)out of bounds
D)indexed
سؤال
All array elements have the same ____________________ name, but each individual element also has a unique subscript indicating how far away it is from the first element.
سؤال
Consider a mail-order business in which customers get a discount based on the quantity they order. In writing a program to compute the discount based on a customer's order quantity, why is it not a good idea to construct an array with as many elements as a customer might want to order, and store the appropriate discount associated with each number?
سؤال
How do you reference the elements in an array?
سؤال
What happens when a beginning programmer forgets that array subscripts start with 0?
سؤال
Match between columns
In this type of array, each element in one array is associated with the element in the same relative position in the other array
linear search
In this type of array, each element in one array is associated with the element in the same relative position in the other array
in bounds
In this type of array, each element in one array is associated with the element in the same relative position in the other array
flag
In this type of array, each element in one array is associated with the element in the same relative position in the other array
parallel arrays
In this type of array, each element in one array is associated with the element in the same relative position in the other array
array
In this type of array, each element in one array is associated with the element in the same relative position in the other array
element
In this type of array, each element in one array is associated with the element in the same relative position in the other array
for loop
In this type of array, each element in one array is associated with the element in the same relative position in the other array
named constant
In this type of array, each element in one array is associated with the element in the same relative position in the other array
binary search
In this type of array, each element in one array is associated with the element in the same relative position in the other array
populating the array
سؤال
Match between columns
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
linear search
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
in bounds
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
flag
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
parallel arrays
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
array
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
element
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
for loop
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
named constant
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
binary search
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
populating the array
سؤال
Describe an array and provide an example of a real-life equivalent to an array.
سؤال
Why is it important to learn to use arrays properly?
سؤال
What is an advantage of using an array to match a value in a range of values?
سؤال
How can constants be used when working with arrays?
سؤال
Match between columns
A subscript that is within the range of acceptable subscripts
linear search
A subscript that is within the range of acceptable subscripts
in bounds
A subscript that is within the range of acceptable subscripts
flag
A subscript that is within the range of acceptable subscripts
parallel arrays
A subscript that is within the range of acceptable subscripts
array
A subscript that is within the range of acceptable subscripts
element
A subscript that is within the range of acceptable subscripts
for loop
A subscript that is within the range of acceptable subscripts
named constant
A subscript that is within the range of acceptable subscripts
binary search
A subscript that is within the range of acceptable subscripts
populating the array
سؤال
What happens if a subscript value is negative or higher than the highest allowed subscript?
سؤال
What are the steps to verify that an item number exists in an array? Provide an example.
سؤال
Match between columns
Starts searching through a list from one end to the other
linear search
Starts searching through a list from one end to the other
in bounds
Starts searching through a list from one end to the other
flag
Starts searching through a list from one end to the other
parallel arrays
Starts searching through a list from one end to the other
array
Starts searching through a list from one end to the other
element
Starts searching through a list from one end to the other
for loop
Starts searching through a list from one end to the other
named constant
Starts searching through a list from one end to the other
binary search
Starts searching through a list from one end to the other
populating the array
سؤال
Match between columns
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
linear search
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
in bounds
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
flag
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
parallel arrays
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
array
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
element
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
for loop
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
named constant
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
binary search
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
populating the array
سؤال
Match between columns
A variable that you set to indicate whether some event has occurred
linear search
A variable that you set to indicate whether some event has occurred
in bounds
A variable that you set to indicate whether some event has occurred
flag
A variable that you set to indicate whether some event has occurred
parallel arrays
A variable that you set to indicate whether some event has occurred
array
A variable that you set to indicate whether some event has occurred
element
A variable that you set to indicate whether some event has occurred
for loop
A variable that you set to indicate whether some event has occurred
named constant
A variable that you set to indicate whether some event has occurred
binary search
A variable that you set to indicate whether some event has occurred
populating the array
سؤال
Match between columns
Can hold the size of an array
linear search
Can hold the size of an array
in bounds
Can hold the size of an array
flag
Can hold the size of an array
parallel arrays
Can hold the size of an array
array
Can hold the size of an array
element
Can hold the size of an array
for loop
Can hold the size of an array
named constant
Can hold the size of an array
binary search
Can hold the size of an array
populating the array
سؤال
Match between columns
Providing array values
linear search
Providing array values
in bounds
Providing array values
flag
Providing array values
parallel arrays
Providing array values
array
Providing array values
element
Providing array values
for loop
Providing array values
named constant
Providing array values
binary search
Providing array values
populating the array
سؤال
Match between columns
Each separate item in an array
linear search
Each separate item in an array
in bounds
Each separate item in an array
flag
Each separate item in an array
parallel arrays
Each separate item in an array
array
Each separate item in an array
element
Each separate item in an array
for loop
Each separate item in an array
named constant
Each separate item in an array
binary search
Each separate item in an array
populating the array
سؤال
Match between columns
A series of values in computer memory
linear search
A series of values in computer memory
in bounds
A series of values in computer memory
flag
A series of values in computer memory
parallel arrays
A series of values in computer memory
array
A series of values in computer memory
element
A series of values in computer memory
for loop
A series of values in computer memory
named constant
A series of values in computer memory
binary search
A series of values in computer memory
populating the array
سؤال
Why is it desirable to leave the loop as soon as a match is found?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/60
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 6: Arrays
1
An array is a(n)____ of values in computer memory.

A)list
B)accumulation
C)set
D)record
A
2
An array can be used to replace ____.

A)records
B)methods
C)nested decisions
D)loops
C
3
You use subscripts 1 through 10 to access the elements in a ten element array.
False
4
The number of elements in an array is called the ____ of the array.

A)width
B)size
C)height
D)depth
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
5
Many newer programming languages such as C++, Java, and C# use subscript 1 to access the first element of the array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
6
A(n)____ is another name for a subscript.

A)pointer
B)sequence
C)index
D)place holder
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
7
You can improve the efficiency of a program by leaving a loop as soon as a match is found in the array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
8
Providing array values is sometimes called ____.

A)creating the array
B)declaring the array
C)accumulating the array
D)populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
9
All array elements have the same group ____.

A)subscript
B)name
C)memory location
D)value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
10
Suppose that you have declared a numeric array named numbers, and two of its elements are numbers[1] and numbers[5]. You know that ____.

A)numbers[1] is smaller than numbers[5]
B)there are exactly four elements between those two elements
C)numbers[5] is the last element in the array
D)there are exactly three elements between those two elements
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
11
A parallel array is an array that stores another array in each element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
12
Arrays cannot be used if you need to search for a range of values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
13
When you have a five element array and use subscript 6, your subscript is said to be out of bounds.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
14
In all languages, subscript values must be sequential ____.

A)characters
B)fractions
C)real numbers
D)integers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
15
A program contains an array that holds all the names of the days of the week. Which of the following is true?

A)The highest subscript is 6.
B)The highest subscript is 7.
C)The lowest subscript is 1.
D)The highest subscript is 12.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
16
Parallel arrays must contain the same data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
17
Declaring a named constant makes code easier to modify and understand.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
18
Array elements all have the same ____ in common.

A)pointer
B)memory location
C)value
D)data type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
19
The for loop is a good tool when working with arrays because you frequently need to process every element of an array from beginning to end.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
20
Many newer programming languages such as C++, Java, and C# use the square bracket notation for arrays.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
21
To search an array for a(n)____ match, you can store either the highest or lowest value of each range for comparison.

A)flag
B)index
C)subscript
D)range
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
22
A ____ search starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower.

A)linear
B)binary
C)quadratic
D)divided
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
23
A subscript, also called a(n)____________________, is a number that indicates the position of a particular item within an array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
24
The number of bytes in an array is always a multiple of the number of ____ in an array.

A)subscripts
B)elements
C)iterators
D)indexes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
25
Parallel arrays are most useful when value pairs have a(n)____ relationship.

A)direct
B)indirect
C)linked
D)tiered
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
26
Which statement is true of arrays?

A)Only whole numbers can be used as array subscripts.
B)Only whole numbers can be stored in arrays.
C)Arrays cause more work for the programmer, but allow faster program execution.
D)Array elements cannot be reset after the array is declared.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
27
The true benefit of using an array lies in your ability to use a ____ as a subscript to the array.

A)constant
B)loop
C)command
D)variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
28
In every programming language, when you access data stored in an array, you must use a ____ containing a value that accesses memory occupied by the array.

A)superscript
B)subscript
C)key
D)condition
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
29
When you search through a list from one end to the other, you are performing a ____.

A)linear search
B)binary search
C)quadratic search
D)single lookup
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
30
When working with arrays, you can use ____________________ in several ways: To hold the size of an array, as the array values, and as a subscript .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
31
A(n)____________________ is a variable set to indicate whether some event has occurred.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
32
One advantage to using a named constant is that the statement becomes ____.

A)self-perpetuating
B)self-documenting
C)self-referencing
D)self-mitigating
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
33
Use a(n)____________________ to indicate the position of a particular item within an array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
34
If you declare a variable to be Boolean, you can set its value to ____.

A)any number
B)true or false
C)any integer
D)1 or -1
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
35
Every array has a(n)____ size.

A)infinite
B)finite
C)variable
D)constant
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
36
Besides making your code easier to modify, using a ____ makes the code easier to understand.

A)standard constant
B)named constant
C)literal constant
D)named variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
37
Named ____ hold values that do not change during a program's execution.

A)constants
B)variables
C)objects
D)items
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
38
A ____ relates parallel arrays.

A)superscript
B)key
C)subscript
D)postscript
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
39
When a subscript is not within the range of acceptable subscripts, it is said to be ____.

A)a superscript
B)flagged
C)out of bounds
D)indexed
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
40
All array elements have the same ____________________ name, but each individual element also has a unique subscript indicating how far away it is from the first element.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
41
Consider a mail-order business in which customers get a discount based on the quantity they order. In writing a program to compute the discount based on a customer's order quantity, why is it not a good idea to construct an array with as many elements as a customer might want to order, and store the appropriate discount associated with each number?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
42
How do you reference the elements in an array?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
43
What happens when a beginning programmer forgets that array subscripts start with 0?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
44
Match between columns
In this type of array, each element in one array is associated with the element in the same relative position in the other array
linear search
In this type of array, each element in one array is associated with the element in the same relative position in the other array
in bounds
In this type of array, each element in one array is associated with the element in the same relative position in the other array
flag
In this type of array, each element in one array is associated with the element in the same relative position in the other array
parallel arrays
In this type of array, each element in one array is associated with the element in the same relative position in the other array
array
In this type of array, each element in one array is associated with the element in the same relative position in the other array
element
In this type of array, each element in one array is associated with the element in the same relative position in the other array
for loop
In this type of array, each element in one array is associated with the element in the same relative position in the other array
named constant
In this type of array, each element in one array is associated with the element in the same relative position in the other array
binary search
In this type of array, each element in one array is associated with the element in the same relative position in the other array
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
45
Match between columns
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
linear search
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
in bounds
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
flag
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
parallel arrays
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
array
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
element
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
for loop
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
named constant
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
binary search
A particularly convenient tool when working with arrays because you frequently need to process every element of an array
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
46
Describe an array and provide an example of a real-life equivalent to an array.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
47
Why is it important to learn to use arrays properly?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
48
What is an advantage of using an array to match a value in a range of values?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
49
How can constants be used when working with arrays?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
50
Match between columns
A subscript that is within the range of acceptable subscripts
linear search
A subscript that is within the range of acceptable subscripts
in bounds
A subscript that is within the range of acceptable subscripts
flag
A subscript that is within the range of acceptable subscripts
parallel arrays
A subscript that is within the range of acceptable subscripts
array
A subscript that is within the range of acceptable subscripts
element
A subscript that is within the range of acceptable subscripts
for loop
A subscript that is within the range of acceptable subscripts
named constant
A subscript that is within the range of acceptable subscripts
binary search
A subscript that is within the range of acceptable subscripts
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
51
What happens if a subscript value is negative or higher than the highest allowed subscript?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
52
What are the steps to verify that an item number exists in an array? Provide an example.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
53
Match between columns
Starts searching through a list from one end to the other
linear search
Starts searching through a list from one end to the other
in bounds
Starts searching through a list from one end to the other
flag
Starts searching through a list from one end to the other
parallel arrays
Starts searching through a list from one end to the other
array
Starts searching through a list from one end to the other
element
Starts searching through a list from one end to the other
for loop
Starts searching through a list from one end to the other
named constant
Starts searching through a list from one end to the other
binary search
Starts searching through a list from one end to the other
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
54
Match between columns
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
linear search
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
in bounds
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
flag
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
parallel arrays
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
array
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
element
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
for loop
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
named constant
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
binary search
Starts looking in the middle of a sorted list, and then determines whether it should continue higher or lower
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
55
Match between columns
A variable that you set to indicate whether some event has occurred
linear search
A variable that you set to indicate whether some event has occurred
in bounds
A variable that you set to indicate whether some event has occurred
flag
A variable that you set to indicate whether some event has occurred
parallel arrays
A variable that you set to indicate whether some event has occurred
array
A variable that you set to indicate whether some event has occurred
element
A variable that you set to indicate whether some event has occurred
for loop
A variable that you set to indicate whether some event has occurred
named constant
A variable that you set to indicate whether some event has occurred
binary search
A variable that you set to indicate whether some event has occurred
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
56
Match between columns
Can hold the size of an array
linear search
Can hold the size of an array
in bounds
Can hold the size of an array
flag
Can hold the size of an array
parallel arrays
Can hold the size of an array
array
Can hold the size of an array
element
Can hold the size of an array
for loop
Can hold the size of an array
named constant
Can hold the size of an array
binary search
Can hold the size of an array
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
57
Match between columns
Providing array values
linear search
Providing array values
in bounds
Providing array values
flag
Providing array values
parallel arrays
Providing array values
array
Providing array values
element
Providing array values
for loop
Providing array values
named constant
Providing array values
binary search
Providing array values
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
58
Match between columns
Each separate item in an array
linear search
Each separate item in an array
in bounds
Each separate item in an array
flag
Each separate item in an array
parallel arrays
Each separate item in an array
array
Each separate item in an array
element
Each separate item in an array
for loop
Each separate item in an array
named constant
Each separate item in an array
binary search
Each separate item in an array
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
59
Match between columns
A series of values in computer memory
linear search
A series of values in computer memory
in bounds
A series of values in computer memory
flag
A series of values in computer memory
parallel arrays
A series of values in computer memory
array
A series of values in computer memory
element
A series of values in computer memory
for loop
A series of values in computer memory
named constant
A series of values in computer memory
binary search
A series of values in computer memory
populating the array
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
60
Why is it desirable to leave the loop as soon as a match is found?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.