Data Structures And Algorithms MCQ Questions

11. O(1) means computing time is __________________

A. Constant
B. Quadratic
C. Linear
D. Cubic

View Answer


12. 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


13. 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


14. 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


15. 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


16. 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


17. 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


18. 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


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

A. Minimum & Maximum problem
B. Knapsack problem
C. Selection problem
D. Merge sort

View Answer


20. The [] notation is

A. Symmetric
B. Reflexive
C. Transitive
D. All of the above

View Answer





Discussion


* You must be logged in to add comment.