ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
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
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
c
 
Is This Answer Correct ?    0 Yes 0 No
Santhoo035
[Nan]
 
  Re: 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
# 2
c)seletoin sort
 
Is This Answer Correct ?    0 Yes 0 No
Jitendra Kumar Arya
 
 
 
  Re: 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
# 3
answer is a
 
Is This Answer Correct ?    1 Yes 0 No
Subbu
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma Wipro13
what is the use of pointers  5
Can we include one C program into another C program if yes how? Infosys4
What is structure packing ? HP1
how to connect oracle in C/C++.  2
write a string copy function routine?  1
Difference Between embedded software and soft ware? Bosch1
without using arithmatic operator solve which number is greater??????????  1
differentiate between const char *a; char *const a; and char const *a; HCL1
How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?  1
what is dangling pointer? LG-Soft1
Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms Convex-Digital4
difference between function & structure Verizon5
write a function which accept two numbers from main() and interchange them using pointers?  3
char ch=10;printf("%d",ch);what is the output Accenture11
what does the following function print? func(int i) { if(i%2)return 0; eale return 1; } main() { int =3; i=func(i); i=func(i); printf("%d",i);} TCS8
#define d 10+10 main() { printf("%d",d*d); }  3
Total of how many functions are available in c?  2
What is alloca() and why is its use discouraged?  1
Please list all the unary and binary operators in C.  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com