Skip to content
VUBuddy

CS502 Solved Quiz 1 by VUBuddy

Fundamentals of Algorithms PDF 682 KBUpdated 23 Oct 2026
Quiz CS502 Solved Quiz 1 by VUBuddy PDF 682 KB
vubuddy.com
Type
Quiz
Course
CS502 Fundamentals of Algorithms
Size
PDF 682 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 682 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 24. Download the file for all 24 pages.

WMIg3Q

CS502 QUIZ 1 SOLVED

  1. DFS or BFS yields a _ _ of the graph.

Traversed Tree

b) Spanning tree

c. Simple Tree d. Free Tree

Q2. In Knapsack Problem, the goal is to put items in the knapsack such that the value of the items is subject to weight limit of knapsack.

  1. Minimized
  2. Decreased
  3. Maximized
  4. None of the given options

Correct answer: Maximized

  1. Using ASCII code, each character is represented by a fixed-length code of bits per character.
  1. 4
  2. 6

WMIg3Q

c) 8

d) 10

Q4. Which type of algorithm is harder to prove the correctness?

  1. Greedy
  2. Brute Force
  3. Dynamic Programming
  4. Divide and Conquer

Correct answer: Greedy

Q5. Consider the string "abcdaacac". if the string is coded with ASCII codes, the message length would be .

  1. 70 bits
  2. 60 bits
  3. 90 bits
  4. 75 bits

Correct answer: 75 bits

8*9=72 bits are the right answer

Q6. In algorithm, you hope that by choosing a local optimum at each step, you will end up at a global optimum.

  1. Simple
  2. Divide and conquer
  3. Greedy

Correct answer: Greedy

WMIg3Q

d) Brute force

Q7. For a digraph G = (V, E), Sum of in-degree(v)

  1. Not equal to Sum of out-degree(V)
  2. =Sum of out-degree(v)
  3. < Sum of out-degree(v)
  4. > Sum of out-degree(v)

Correct answer: =Sum of out-degree(v)

  1. In inductive approach of knapsack problem, we consider 2 cases,

Or a) Median, Mode b) Recursive, Iterative

c) Leave object, Take object

d. Sequentially, Parallel

  1. A/an is one in which you want to find, not just a solution, but the best solution.

a) Optimization Problem

b) Divide and Conquer c) NP Complete problem d) Best Problem

All CS502 files →
CS502 Fundamentals of Algorithms All CS502 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.