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



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

Answer / santhoo035

c

Is This Answer Correct ?    2 Yes 0 No

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

Answer / jitendra kumar arya

c)seletoin sort

Is This Answer Correct ?    2 Yes 0 No

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

Answer / subbu

answer is a

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

why effort estimation is important?

1 Answers  


Write a code to determine the total number of stops an elevator would take to serve N number of people.

0 Answers   Expedia,


Write a program of prime number using recursion.

0 Answers   Aspiring Minds,


Explain the difference between #include "..." And #include <...> In c?

0 Answers  


What are the characteristics of arrays in c?

0 Answers  






What is 2c dna?

0 Answers  


Write a program to compute the following 1!+2!+...n!

4 Answers  


how to find sum of digits in C?

21 Answers   CTS, Infosys,


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

0 Answers   HP,


write a programme that inputs a number by user and gives its multiplication table.

2 Answers  


main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

8 Answers   Vector,


what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

0 Answers  


Categories