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
What is a constant?
What is a char in c?
Distinguish between actual and formal arguments.
What is a keyword?
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
Where is c used?
What is structure padding and packing in c?
Why main is not a keyword in c?
Differentiate Source Codes from Object Codes
What does typeof return in c?
What is #line in c?
Can you apply link and association interchangeably?
What is class and object in c?
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.
can anyone please tell about the nested interrupts?