# Data Structures And Algorithms MCQ Questions

16. O(1) means computing time is __________________

A. Constant

B. Quadratic

C. Linear

D. Cubic

View Answer

Ans : A

Explanation: O(1) means computing time is Constant.

17. Which data structure allows deleting data elements from front and inserting at rear?

A. Stacks

B. Queues

C. Deques

D. Binary search tree

View Answer

Ans : B

Explanation: Queues data structure allows deleting data elements from front and inserting at rear.

18. Which of the following sorting algorithm is of divide-and-conquer type?

A. Bubble sort

B. Insertion sort

C. Quick sort

D. Selection sort

View Answer

Ans : C

Explanation: Quick sorting algorithm is of divide-and-conquer type.

19. The time factor when determining the efficiency of algorithm is measured by?

A. Counting microseconds

B. Counting the number of key operations

C. Counting the number of statements

D. Counting the kilobytes of algorithm

View Answer

Ans : B

Explanation: The time factor when determining the efficiency of algorithm is measured by Counting the number of key operations.

20. In an array representation of binary tree the right child of root will be at location of?

A. 2

B. 3

C. 4

D. 6

View Answer

Ans : B

Explanation: In an array representation of binary tree the right child of root will be at location of 3.

21. The upper bound on the time complexity of the nondeterministic
sorting algorithm is?

A. O(n)

B. O(n log n)

C. O(1)

D. O( log n)

View Answer

Ans : A

Explanation: The upper bound on the time complexity of the nondeterministic
sorting algorithm is O(n)

22. In analysis of algorithm, approximate relationship between the size of the job and the amount of work required to do is expressed by using _________.

A. Central tendency

B. Differential equation

C. Order of magnitude

D. Order of execution

View Answer

Ans : D

Explanation: In analysis of algorithm, approximate relationship between the size of the job and
the amount of work required to do is expressed by using Order of execution

23. What is the type of the algorithm used in solving the 8 Queens problem?

A. Backtracking

B. Dynamic

C. Branch and Bound

D. Both A and B

View Answer

Ans : A

Explanation: Backtracking algorithm used in solving the 8 Queens problem.

24. Which of the following belongs to the algorithm paradigm?

A. Minimum & Maximum problem

B. Knapsack problem

C. Selection problem

D. Merge sort

View Answer

Ans : B

Explanation: Knapsack problem belongs to the algorithm paradigm.

25. The [] notation is

A. Symmetric

B. Reflexive

C. Transitive

D. All of the above

View Answer

Ans : D

Explanation: The [] notation is All of the above.

Discussion