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 a constant?

610


What is a char in c?

534


Distinguish between actual and formal arguments.

562


What is a keyword?

722


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2224






Where is c used?

631


What is structure padding and packing in c?

587


Why main is not a keyword in c?

620


Differentiate Source Codes from Object Codes

791


What does typeof return in c?

616


What is #line in c?

538


Can you apply link and association interchangeably?

649


What is class and object in c?

568


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1766


can anyone please tell about the nested interrupts?

1655