please solve fast 🙏🏼
Posted: Tue Jul 05, 2022 10:27 am
please solve fast 
QUESTION 3 Assume that the following method is within the KWArrayList class, what does it do: public void quizQestion(int loc) { if (loc < 0 || loc > size) return; E temp; for (int i = loc; i < size - 1; i++) if ( theData < theData[i+1] ) { temp = theData[i+1); theData[i+1] = theData; theData = temp; } O a. Makes the smallest element starting from loc as the last element in the list. Ob. Makes the smallest element starting from loc to be before the last element in the list. Oc Swap every two consecutive elements starting from loc in the list. OdSwap every two consecutive elements of the whole list. QUESTION 4 Click Save and Submit to save and submit Cliel Say
QUESTION 3 Assume that the following method is within the KWArrayList class, what does it do: public void quizQestion(int loc) { if (loc < 0 || loc > size) return; E temp; for (int i = loc; i < size - 1; i++) if ( theData < theData[i+1] ) { temp = theData[i+1); theData[i+1] = theData; theData = temp; } O a. Makes the smallest element starting from loc as the last element in the list. Ob. Makes the smallest element starting from loc to be before the last element in the list. Oc Swap every two consecutive elements starting from loc in the list. OdSwap every two consecutive elements of the whole list. QUESTION 4 Click Save and Submit to save and submit Cliel Say