QUIZ PollingQuestions
QUIZ PollingQuestions
Q. In Selection Sort algorithm, what will the array status after 3 iterations
for given input: 30 20 60 50 10 40.
A. 10 20 30 40 50 60
B. 10 30 20 40 50 60
C. 10 20 30 60 50 40
D. 10 20 30 50 60 40
Answer: C
Q. In Bubble Sort algorithm, what will the array status after 3 iterations for
given input: 30 20 60 50 10 40.
A. 20 10 30 40 50 60
B. 30 10 20 40 50 60
C. 30 20 10 50 40 60
D. None of the above
Answer: A
Q. In a selection sort max ____ no. of iterations are required to sort all
array elements.
A. n
B. n+1
C. n-1
D. 2n
Answer: C