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
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
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
What is cohesion in c?
Are the expressions * ptr ++ and ++ * ptr same?
how can f be used for both float and double arguments in printf? Are not they different types?
What is the description for syntax errors?
What is a constant and types of constants in c?
Array is an lvalue or not?
What is c language and why we use it?
How can I manipulate individual bits?
write a program in c language to print your bio-data on the screen by using functions.
What is this pointer in c plus plus?
I heard that you have to include stdio.h before calling printf. Why?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
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