Solved

Which of the Following Completes the Selection Sort Method MinimumPosition()

Question 39

Multiple Choice

Which of the following completes the selection sort method minimumPosition() ? Which of the following completes the selection sort method minimumPosition() ?    A) if (a[i] > a[minPos])  { minPos = i; } B) if (a[i] < a[j])  { minPos = i; } C) if (a[i] < a[minPos])  { minPos = i; } D) if (a[i] < a[minPos])  { i = minPos; }


A) if (a[i] > a[minPos]) { minPos = i; }
B) if (a[i] < a[j]) { minPos = i; }
C) if (a[i] < a[minPos]) { minPos = i; }
D) if (a[i] < a[minPos]) { i = minPos; }

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions