5. What kind of sorting is this:
SORT (k,n)
1.[Loop on I Index]
repeat thru step2 for i=1,2,........n-1
2.[For each pass,get small value]
min=i;
repeat for j=i+1 to N do
{
if K[j]<k[min]
min=j;
}
temp=K[i];K[i]=K[min];K[min]=temp;
3.[Sorted Values will be returned]
A)Bubble Sort
B)Quick Sort
C)Selection Sort
D)Merge Sort

Answer Posted / rajesh

Selection Sort

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between printf and scanf in c?

869


What is getch () for?

787


What are the different file extensions involved when programming in C?

872


How was c created?

688


How can I pad a string to a known length?

697






WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1552


Compare array data type to pointer data type

702


what is the diffrenet bettwen HTTP and internet protocol

1474


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

1854


What is wrong with this statement? Myname = 'robin';

925


How do you define a function?

676


When would you use a pointer to a function?

672


How can you find the exact size of a data type in c?

684


What is meant by operator precedence?

771


What is pass by reference in c?

728