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 / subbu

answer is a

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to set file pointer to beginning c?

681


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

656


What is new line escape sequence?

816


In a header file whether functions are declared or defined?

639


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1194






What is %d called in c?

767


What does nil mean in c?

682


How can I write a function that takes a format string and a variable number of arguments?

613


what do u mean by Direct access files? then can u explain about Direct Access Files?

1653


What does the error 'Null Pointer Assignment' mean and what causes this error?

752


Difference between malloc() and calloc() function?

665


what is the significance of static storage class specifier?

1675


What is array of structure in c?

611


What is time complexity c?

580


What is c variable?

563