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 / murali
Bubble sort
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
What does typeof return in c?
Does * p ++ increment p or what it points to?
How can you increase the size of a dynamically allocated array?
What is use of pointer?
Tell me is null always defined as 0(zero)?
Why isn't any of this standardized in c? Any real program has to do some of these things.
Are negative numbers true in c?
What is the meaning of 2d in c?
In c programming language, how many parameters can be passed to a function ?
write a program to find out prime number using sieve case?
Explain how can I right-justify a string?
Describe the steps to insert data into a singly linked list.
What is the difference between union and anonymous union?
provide an example of the Group by clause, when would you use this clause