True/False Indicate whether the statement is true or false. 1. When you pass an array to a function, the computer passes the address of each of the array elements. 2. When an array is sorted in descending order, the first element in the array contains the smallest value and the last element contains the largest value. 3. The variables in an array are referred to as elements of the array. 4. Assigning initial values to an array is not required, but considered good programming practice. 5. Parallel arrays are two or more arrays whose elements are related by their position in the arrays. 6. You should not pass a one-dimensional array to a function. 7. Passing an array by reference is more efficient than passing it by value. 8. The quick sort algorithm provides a quick and easy way to sort the items stored in an array, as long as the number of items is relatively small—for example, fewer than 50. 9. The variables in an array may be stored in non-consecutive memory locations in the computer’s internal memory. 10. It takes longer for the computer to access the information stored in a disk file, than in an array in memory.
True/False
|
|
1. |
When you pass an array to a function, the computer passes the address of each of the array elements.
|
2. |
When an array is sorted in descending order, the first element in the array contains the smallest value and the last element contains the largest value.
|
3. |
The variables in an array are referred to as elements of the array.
|
4. |
Assigning initial values to an array is not required, but considered good
|
5. |
Parallel arrays are two or more arrays whose elements are related by their position in the arrays.
|
6. |
You should not pass a one-dimensional array to a function.
|
7. |
Passing an array by reference is more efficient than passing it by value.
|
8. |
The quick sort
|
9. |
The variables in an array may be stored in non-consecutive memory locations in the computer’s internal memory.
|
10. |
It takes longer for the computer to access the information stored in a disk file, than in an array in memory.
|
Trending now
This is a popular solution!
Step by step
Solved in 3 steps