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

What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1306


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

631


What is cohesion in c?

543


Are the expressions * ptr ++ and ++ * ptr same?

670


how can f be used for both float and double arguments in printf? Are not they different types?

610






What is the description for syntax errors?

616


What is a constant and types of constants in c?

605


Array is an lvalue or not?

641


What is c language and why we use it?

625


How can I manipulate individual bits?

608


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

6252


What is this pointer in c plus plus?

599


I heard that you have to include stdio.h before calling printf. Why?

589


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

658


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2861