1 In order to sort a 15 element array using a bubble sort al
1.) In order to sort a 15 element array using a bubble sort algorithm, the system needs to make, at the most, _______ passes of the data
13
14
15
16
2.) If the item being searched for is not in the array, binary search stops looking for it and reports that it is not there when
array index first > array index last.
Boolean variable found equals false.
Boolean variable found equals true.
it finds a value larger than the search key.
it has examined all the elements in the array.
3.) If employee is a 10-element array of objects with a public mutator member function named setHoursWorked, which of the following statements correctly calls that function for the 6th object in the array?
employee.setHoursWorked[5] = 40;
employee[5].setHoursWorked = 40;
employee.setHoursWorked[5](40);
employee[5].setHoursWorked(40);
setHoursWorked(employee[5], 40);
4.)The name of an array without a subscript is ________
A modifiable memory address
A constant memory address
The value maintained in its first element
The value that indicates the number of elements in the array
5.) Which of the following statements is true about a constructor?
The return type of a constructor is void
The return type of a constructor is int
The return type of a constructor is bool
The return type of a constructor is not specified
| A.) | 13 | |
| B.) | 14 | |
| C.) | 15 | |
| D.) | 16 | 
Solution
1)In order to sort a 15 element array using a bubble sort algorithm, the system needs to make, at the most, _______ passes of the data
sol:14 passes (n-1=>15-1=>14)
5)sol:the return type of a contructor is void return type


