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 · Midterm#20

Sieve Technique can be applied to selection problem

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#19

Heaps can be stored in arrays without using any pointers; this is due to the ____________ nature of the binary
tree,

  1. A
    left-complete
  2. B
    right-complete
  3. C
    tree nodes
Show correct answer

Correct answer: A. left-complete

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#18

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

  1. A
    Convergent geometric series
  2. B
    Divergent geometric series
  3. C
    None of these
Show correct answer

Correct answer: A. Convergent geometric series

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#17

In RAM model instructions are executed

  1. A
    One after another
  2. B
    Parallel
  3. C
    Concurrent
Show correct answer

Correct answer: A. One after another

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#16

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

  1. A
    True
  2. B
    False
Show correct answer

Correct answer: A. True

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#15

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

  1. A
    True
  2. B
    false
Show correct answer

Correct answer: A. True

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#14

Sieve Technique applies to problems where we are interested in finding a single item
from a larger set of _____________

  1. A
    n items
  2. B
    phases
  3. C
    pointers
Show correct answer

Correct answer: A. n items

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#13

For the Sieve Technique we take time

  1. A
    T(nk)
  2. B
    T(n / 3)
  3. C
    n^2
Show correct answer

Correct answer: A. T(nk)

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#12

The Knapsack problem belongs to the domain of _______________ problems.

  1. A
    NP Complete
  2. B
    Optimization
  3. C
    Linear Solution
Show correct answer

Correct answer: B. Optimization

Check community answers against your course notes.Question permalink ↗
CS502 · Midterm#11

In Quick sort, we don’t have the control over the sizes of recursive calls

  1. A
    True
  2. B
    False
  3. C
    Less information to decide
Show correct answer

Correct answer: A. True

Check community answers against your course notes.Question permalink ↗