What is the output of the following code?

```
double[] myList = {1, 5, 5, 5, 5, 1};
double max = myList[0];
int indexOfMax = 0;
for (int i = 1; i < myList.length; i++) {
if (myList[i] > max) {
max = myList[i];
indexOfMax = i;
}
}
System.out.println(indexOfMax);
```
a. 0
b. 1
c. 2
d. 3
e. 4


b. 1

Computer Science & Information Technology

You might also like to view...

A table ____ is an option used by screen readers to help users identify the content of a table.

A. cap B. header C. pullquote D. ID

Computer Science & Information Technology

The ________ is folder that stores anything that deleted from the hard drive on a computer

A) Recycle Bin B) Trash C) Wastepaper Bin D) Trash Can

Computer Science & Information Technology

Markups placed on a slide in slide show view are ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The IEEE ____ standard specified that wireless transmissions could take place in one of two ways. The first is through infrared light, and the other type of transmission is by sending radio signals.

A. 802.1 B. 802.3 C. 802.8 D. 802.11

Computer Science & Information Technology