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#90

In Knapsack Problem, value and weight both are to be under consideration.

  1. A
    ?True (page 91)
  2. B
    ?False
Show correct answer

Correct answer: A. ?True (page 91)

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

The term “coloring” came from the original application which was in architectural design.

  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#88

In ______ Knapsack Problem, limitation is that an item can either be put in the bag or not-fractional items are
not allowed.

  1. A
    ?0
  2. B
    ?1
  3. C
    ?0/1 (Page 91)
  4. D
    ?Fractional
Show correct answer

Correct answer: C. ?0/1 (Page 91)

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

Fixed-length codes are known for easy break up of a string into its individual characters.

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

Correct answer: A. ?True (Page 99)

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

In Huffman encoding, for a given message string, the frequency of occurrence (relative probability) of each
character in the message is determined last.

  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#85

The knapsack problem does not belong to the domain of optimization problems.

  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#84

In Knapsack Problem, the thief’s goal is to put items in the bag such that the ______ of the items does not
exceed the limit of the bag.

  1. A
    ?Value (Page 91)
  2. B
    ?Weight
  3. C
    ?Length
  4. D
    ?Balance
Show correct answer

Correct answer: A. ?Value (Page 91)

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

Using ASCII code, each character is represented by a fixed-length code word of ________ bits per character.

  1. A
    ?4
  2. B
    ?6
  3. C
    ?8 (P)age 99)
  4. D
    ?10
Show correct answer

Correct answer: C. ?8 (P)age 99)

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

If there are n items, there are _______ possible combinations of the items.

  1. A
    ?2
  2. B

    ?2^n (Page 92)
  3. C
    ?3^n
  4. D
    ?n
Show correct answer

Correct answer: B.
?2^n (Page 92)

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

If a problem is in NP-complete, it must also be in NP.

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

Correct answer: A. ? True (Page 178)

Check community answers against your course notes.Question permalink ↗