Ask Question
25 October, 05:24

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

+4
Answers (1)
  1. 25 October, 07:33
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers