Ask Question
25 December, 14:31

Select the correct text in the passage.

Brian has created the following selection sort class in Java. In which line is the index of the smallest value returned? In which line is the input array given as an argument?

public class SelectionSort

private static int positionMin (int] vals, int startPosition) { int minPosition startPosition; for (int i startPosition; i

+5
Answers (1)
  1. 25 December, 14:53
    0
    Answer is given below

    Explanation:

    The index of the smallest value returned by function positionMin (),

    and it is done by line "return minPosition; "

    The input array is given as an argument in function selSort () and it is done by line "public static void selSort (int [] vals) " Here vals is input array argument.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Select the correct text in the passage. Brian has created the following selection sort class in Java. In which line is the index of the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers