Analysis of Algorithms and Computational Complexity Questions and Answers

Practice Mode
Showing 10 of 239 questions
Q131
What is the name of the computer programming language which is credited with 'no threshold and no ceiling' ?
  • A LOGO
  • B BASIC
  • C PASCAL
  • D ADA
Answer: Option A
Q132
The Computer language LOGO is based on another powerful list processing language for Robotics and Artificial Intelligence. Can you tell the name of that language ?
  • A GSP
  • B LISP
  • C PASCAL
  • D PROLOG
Answer: Option D
Q133
Which of the following is one of the widely used algol based simulation language ?
  • A FORTRAN
  • B GASPIV
  • C SIMSCRIPT
  • D GPSS
Answer: Option C
Q134
Which decision procedure has at least doubly-exponential time complexity ?
  • A LInear programming
  • B Travelling Salesmen Problem
  • C Presburger Arithmetic
  • D Hamiltonian Circuit Problem
Answer: Option C
Q135
Which sort will operate in quadratic time relative to the number of elements in the array (on the average) ?
  • A quick sort
  • B merge sort
  • C heap sort
  • D bubble sort
Answer: Option D
Q136
What is the weight of the minimal spanning tree for the graph in problem 234 ?
  • A 17
  • B 18
  • C 20
  • D 21
Answer: Option D
Q137
After constructing a "sorted" binary insertion tree, to produce a sorted array to numbers (for printing purposes), what must be done ?
  • A pre-order traversal
  • B inorder traversal
  • C post-order traversal
  • D top down traversal
Answer: Option B
Q138
Which of the following sorting algorithms yield approximately the same worst-case and average-case running time behaviour in O (n log n) ?
  • A Bubble sort and Selection sort
  • B Heap sort and Merge sort
  • C Quicksort and Radix sort
  • D Tree sort and Median-of-3 Quick sort
Answer: Option B
Q139
Super-Jarvis said "I can write a super merge sort which splits an array into 4 components (unlike regular merge sort which splits in two) and then recursively sort the 4 subarrays and thend merges them. Though similar to merge sort, it is faster and called SJ4." What is true ?
  • A SJ4 cannot possibly work, a four-way split and then later merge is 0 reposdterous
  • B SJ4 Works and SJ4 operates in O(Merge-Sort)
  • C SJ4 Works and SJ4 is greater than (slower than) O(Merge-Sort)
  • D SJ4 worksd and SJ4 is less than (faster than) O(Merge-sort)
Answer: Option B
Q140
A complete binary tree of level 5 has how many nodes ?
  • A 15
  • B 25
  • C 63
  • D 33
Answer: Option C
Questions and Answers for Competitive Exams Various Entrance Test