YOUR SUBJECT CS502 Fundamentals of AlgorithmsChange subject ↗
PRACTICE AT YOUR OWN PACE

CS502 practice questions

Think through the options before revealing the answer. Use the term filter to focus your revision.

260 questions
CS502 · Final-term only#200

In analysis, the Upper Bound means the function grows asymptotically no faster than its largest term.

  1. A
    ?True
  2. B
    ?False
Show correct answer

Correct answer: A. ?True

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#199

Brute-force algorithm uses no intelligence in pruning out decisions.

  1. A
    ?True
  2. B
    ?False
Show correct answer

Correct answer: A. ?True

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#198

If the indices passed to merge sort algorithm are not equal, the algorithm may return immediately.

  1. A
    ?True
  2. B
    ?False
Show correct answer

Correct answer: B. ?False

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#197

The time assumed for each basic operation to execute on RAM model of computation is-----

  1. A
    ?Infinite
  2. B
    ?Continuous
  3. C
    ?Constant
  4. D
    ?Variable
Show correct answer

Correct answer: C. ?Constant

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#196

Due to left-complete nature of binary tree, heaps can be stored in

  1. A
    ?Link list
  2. B
    ?Structure
  3. C
    ?Array
  4. D
    ?None of above
Show correct answer

Correct answer: C. ?Array

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#195

In RAM model instructions are executed

  1. A
    ?One after another (Page 10)
  2. B
    ?Parallel
  3. C
    ?Concurrent
  4. D
    ?Random
Show correct answer

Correct answer: A. ?One after another (Page 10)

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#194

If an algorithm has a complexity of log
2
n + nlog
2
n + n. we could say that it has complexity

  1. A
    ?O(n)
  2. B
    ?O( n log
    2
    n)
    ?O(3)
  3. C
    ?O ( log
    2
    n)
  4. D
    ?O( log
    2
    ( log
    2
    n ))
Show correct answer

Correct answer: C. ?O ( log
2
n)

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#193

In selection algorithm, because we eliminate a constant fraction of the array with each phase, we get the

  1. A
    ?Convergent geometric series (Page 37)
  2. B
    ?Divergent geometric series
  3. C
    ?None of these
Show correct answer

Correct answer: A. ?Convergent geometric series (Page 37)

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#192

Counting sort the numbers to be sorted are in the range 1 to k where k is small.

  1. A
    ?True (Page 57)
  2. B
    ?False
Show correct answer

Correct answer: A. ?True (Page 57)

Check community answers against your course notes.Question permalink ↗
CS502 · Final-term only#191

Mergesort is a stable algorithm but not an in-place algorithm.

  1. A
    ?True (Page 54)
  2. B
    ?false
Show correct answer

Correct answer: A. ?True (Page 54)

Check community answers against your course notes.Question permalink ↗