You are here : Home >> All Company Study Materials >> Accenture Archive >> Accenture Technical Questions
41.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]
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
Ans. c
42.Which of the following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
Ans. d
43.Which of the following are valid “include” formats?
A)#include and #include[file.h]
B)#include (file.h) and #include
C)#include <file.h> and #include “file.h”
D)#include and #include “file.h’
Ans. c