Answer:
First blank: MAX
Second blank: AVERAGE
Explanation:
Required
Complete the blanks
The first blank is to be filled with a function that calculates the highest score from a given range of scores (cells).
To do this, we make use of the MAX function, and the syntax is:
=MAX(cell_range)
The second blank is to be filled with a function that calculates the mean score from a given range of scores (cells).
To do this, we make use of the AVERAGE function, and the syntax is:
=AVERAGE(cell_range)
Answer:
Explanation:
The following code is written in Java it goes through the queue that was passed as an argument, loops through it and removes all the odd numbers, leaving only the even numbers in the queue. It does not add any more data structures and finally returns the modified queue when its done.
public static Queue<Integer> evens(Queue<Integer> queue) {
int size = queue.size();
for(int x = 1; x < size+1; x++) {
if ((queue.peek() % 2) == 0) {
queue.add(queue.peek());
queue.remove();
} else queue.remove();
}
return queue;
}
Answer:
D) It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.
Explanation:
When you write the statement vector<int> v(10,2); This statement declares a vector or dynamic array of size 10 that is the first parameter and the second parameter is the value with which all the elements in the vector are to be initialized.So in this vector all the 10 values will be initialized with the value 2.It is one of the way of initializing the vector.
Click the font button in the top left hand corner, and search fkr verdana.