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

Answers were Sorted based on User's Feedback



5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,.......

Answer / murali

Bubble sort

Is This Answer Correct ?    5 Yes 2 No

5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,.......

Answer / rajesh

Selection Sort

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Interview Questions

What is the use of printf() and scanf() functions?

0 Answers  


consider the following program sigment int n,sum=1; switch(n) { case 2:sum=sum+2; case 3:sum*=2; break; default:sum=0;} if n=2, what is the value of sum a.0 b.6 c.3 d.none

7 Answers   TCS,


Write a program to find the smallest and largest element in a given array in c language

11 Answers   Microsoft, Vembu,


how to write a prog in c to convert decimal number into binary by using recursen function,

1 Answers  


What is true about the following C Functions (a) Need not return any value (b) Should always return an integer (c) Should always return a float (d) Should always return more than one value

2 Answers   DynPro, TCS,






x=y=z=1 z=++x||++y&&++z Printf("%%%d";xyz) what is the values of x,y and z?????

3 Answers  


What is the use of the function in c?

0 Answers  


How can I set an array's size at run time?

9 Answers  


write a program in c language to print your bio-data on the screen by using functions.

0 Answers  


What is structure in c definition?

0 Answers  


Tell us the use of fflush() function in c language?

0 Answers  


Is c language still used?

0 Answers  


Categories