Analysis of Algorithms and Computational Complexity Questions and Answers

Take Exam

Understanding the Analysis of Algorithms and Computational Complexity questions with answers is crucial for students preparing for GATE, TCS, Infosys, and Wipro placement exams. This topic focuses on evaluating the efficiency of algorithms based on time and space complexity, which forms the foundation of advanced computer programming and system design. By solving programming questions and answers related to algorithm analysis, you can strengthen your logical thinking, optimize code performance, and make informed design decisions. In this section, we cover detailed MCQs and explanations to help you master Big O notation, asymptotic analysis, and algorithmic trade-offs. Perfect for both academic and placement preparation, this guide ensures clarity with well-explained examples.

Questions on algorithmic analysis for computer science aspirants can be complemented by data structure algorithms and software engineering MCQ

Analysis of Algorithms and Computational Complexity

Showing 10 of 239 questions

1. The variables which can be accessed by all modules in a program, are known as

  • local variables
  • internal variables
  • external variable
  • global variables
Show Answer Report

2. In what kind of storage structure for strings, one can easily insert, delete, concatenate and rearrange substrings ?

  • fixed length storage structure
  • variable length storage with fixed maximum
  • linked list storage
  • array type storage
Show Answer Report

3. which of the following operations is performed more efficiently by doubly linked list than by linear linked list

  • Deleting a node whose loxationis given
  • Searching an unsorted list for a given item
  • Inserting a node after the node with a given location
  • Traversing the list to process each node
Show Answer Report

4. A linear list in which elements can be added or removed at either end of but not in the middle is known as

  • queue
  • deque
  • stack
  • tree
Show Answer Report

5. A binary tree in which if all its levels except possibly the last, have the maximum number of nodes and all the nodes at the last level appear as far left as possible, is known as

  • full binary tree
  • 2-tree
  • threaded tree
  • complete binary tree
Show Answer Report

6. A list of integers is read in, one at a time, and a binary search tree is constructed. Next the tree is traversed and the integers are printed. Which traversed would result in a printout which duplicates the original order of the list of integers?

  • preorder
  • postoder
  • inorder
  • none of these
Show Answer Report

7. The five items : A,B,C,D, and E are pushed in a stack, one after the other starting from A. The stack is popped four times and each element is inserted in a que. Then two elements are deleted from the queue and pushed back on the stack. Now one item is popped from the stack. The popped item is

  • A
  • B
  • C
  • D
Show Answer Report

8. If each node in a tree has value greater than every value in its left subtree and has value less than every value in its right subtree, the tree is known as

  • complete tree
  • full binary tree
  • binary search tree
  • threaded tree
Show Answer Report

9. Which of the following sorting procedure is the slowest

  • Quick sort
  • Heap sort
  • Shell sort
  • Bubble sort
Show Answer Report

10. Which of the following is a tabular listing of contents of certain registers and memory locations at different times during the execution of a program ?

  • Loop program
  • Program trace
  • subroutine program
  • byte sorting program
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test