Multiple Choice
What does the following method do?
Public int question15( )
{
Int value1 = 0;
Int value2 = 0;
For (int j = 0; j < 12; j++)
If (candy[j] > value1)
{
Value1 = candy[j];
Value2 = j;
}
Return value2;
}
A) It returns the total number of candy bars sold
B) It returns the total number of children who sold 0 candy bars
C) It returns the total number of children who sold more than 0 candy bars
D) It returns the number of candy bars sold by the child who sold the most candy bars
E) It returns the index of the child who sold the most candy bars
Correct Answer:

Verified
Correct Answer:
Verified
Q14: Write an insertion sort method to sort
Q15: A Java main method uses the parameter
Q22: A ragged array is a multidimensional array
Q36: It is possible to sort an array
Q60: Mouse Events deal with detecting the actions
Q61: For the questions below, assume values is
Q63: If a and b are both int
Q65: Write a method public static int[ ][
Q68: Java arrays can store primitive types and
Q69: The following code accomplishes which of the