Top 350+ Solved Data Structure and Algorithms (DSA) MCQ Questions Answer

From 211 to 225 of 305

Q. Which of the following sorting methods will be the best if number of swappings done, is the only measure of efficienty?

a. bubble sort

b. selection sort

c. insertion sort

d. merge sort

  • b. selection sort

Q. You are asked to sort 15 randomly generated numbers. You should prefer

a. bubble sort

b. selection sort

c. insertion sort

d. merge sort

  • a. bubble sort

Q. The smallest element of an array’s index is called its

a. lower bound

b. upper bound

c. range

d. extraction

  • a. lower bound

Q. Which of the following sorting methods would be most suitable for sorting a list which is almost sorted

a. bubble sort

b. selection sort

c. insertion sort

d. merge sort

  • a. bubble sort

Q. The complexity of Bubble sort algorithm is

a. o(n)

b. o(log n)

c. o(n2)

d. o(n log n)

  • c. o(n2)

Q. A sort which compares adjacent elements in a list and switches wherever necessary is _______

a. insertion sort

b. bubble sort

c. selection sort

d. none of these

  • b. bubble sort

Q. Which of the following sorting method is the slowest?

a. quick sort

b. merge sort

c. bubble sort

d. none of these

  • c. bubble sort

Q. Total number of comparision in bubble sort is____

a. o(nlogn)

b. o(n2)

c. o(n)

d. none of these

  • b. o(n2)
Subscribe Now

Get All Updates & News