cs502 quiz by smile update.pdf

Verified academic study resource for CS502 (Fundamentals of Algorithms) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope spanning approximately 180 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS502 – Fundamentals of Algorithms
Faculty
Computer Science
Format
PDF
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

What this file covers — CS502 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download cs502 quiz by smile update.pdf for free?

You can preview and download "cs502 quiz by smile update.pdf" (CS502 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-quiz-by-smile-update-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS502 file?

This document covers Quizzes & Objective Exam Scope across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS502 under the VU 20% Two-Half Rule?

Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.

Are CS502 solved past papers and handouts verified for 2026 exams?

Yes. All CS502 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.

Inside this file

6/6/22, 1:12 PM                                                     CS502 - Fundamentals of Algorithms

                                          Fundamentals of Algorithms (CS
                                                                      Multiple Choice Questions (MCQs)

        Objective Questions

     1.       An optimization problem is one in which you want to find,

                  1. Not a solution
                  2. An algorithm
                  3. Good solution
                  4.   The best solution

     2.       In ________ algorithm, at any time, the subset of edges A forms a sing

                  1. Kruskal's
                  2.   Prim's
                  3. Both Kruskal's and Prim's
                  4. None of the given

     3.       Counting sort assumes that the numbers to be sorted are in the range

                  1. k to n where n is large
                  2.   1 to k where k is small
                  3. k to n where k is small
                  4. k to n where n is small

     4.       In Dynamic Programming approach, we do not store the solution to ea
              problem in case if it reappears.

                  1.   True
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0                   1/8

6/6/22, 1:12 PM                                                     CS502 - Fundamentals of Algorithms

     7.       Shortest path problems can be solved efficiently by modeling the road
              graph.

                  1.   True
                  2. False

     8.       Adding an edge to a free tree creates.

                  1.   A cycle
                  2. A complete MST
                  3. A partial MST
                  4. A shortest path

     9.       Although it requires more complicated data structures, Prim's algorithm
              minimum spanning tree is better than Kruskal's when the graph has a
              of vertices.

                  1.   True
                  2. False

   10.        In Prim's algorithm, we start with the root vertex r; it can be any verte

                  1.   True
                  2. False

   11.        In the clique cover problem, for two vertices to be in the same group, t
              adjacent to each other.

                  1.   True
                  2. False

   12.        According to parenthesis lemma. vertex u is a descendent of v vertex i

                  1.   [d[u], f[u]] ⊆ [d[v], f[v]]
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0                   2/8

6/6/22, 1:12 PM                                                     CS502 - Fundamentals of Algorithms

   15.        Dynamic Programming is a problem-solving approach in which ______

                  1. Problem is solved in Zero time
                  2.   Solution is developed only at final stage
                  3. Both are correct
                  4. Both are incorrect

   16.        Networks are ________ in the sense that is possible from any location
              network to reach any other location in the digraph.

                  1.   Complete
                  2. Incomplete
                  3. Not graphs
                  4. Transportation

   17.        We say that two vertices u and v are mutually not reachable if u can re
              vice versa.

                  1. True
                  2.   False

   18.        We say that two vertices u and v are mutually ________ if u can reach
              versa.

                  1. Crossed
                  2. Forward
                  3.   Reachable
                  4. Nor Reachable

   19.        Consider three matrices X, Y, Z of dimensions 1 × 2, 2 × 3, 3 × 4 respe
              number of multiplications of X(YZ) is:

                  1. 16
                  2. 23
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0                   3/8

6/6/22, 1:12 PM                                                     CS502 - Fundamentals of Algorithms

                  2.   False

   23.        The Huffman algorithm finds a(n) ________ solution.

                  1.   Optimal
                  2. Non-optimal
                  3. Exponential
                  4. Polynomial

   24.        Chain matrix multiplication problem can be solved through ________ s

                  1.   Dynamic programming
                  2. Greedy
                  3. Divide and conquer
                  4. Sorting

   25.        Strongly connected components are not affected by reversal of all edge
              vertices reachability.

                  1.   True
                  2. False

   26.        In kruskal's algorithm, the next edge is added to viable set A, if its add
              induce a cycle.

                  1.   True
                  2. False

   27.        You have an adjacency list for G, what is the time compexity to comput
              transpose G^T.?

                  1.   ? (V + E)
                  2. ? (V E)
                  3. ?(V)
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0                   4/8

6/6/22, 1:12 PM                                                     CS502 - Fundamentals of Algorithms

                  2. False

   31.        The ________ given by DFS allow us to determine whether the graph c
              cycles.

                  1. Order
                  2.   Time stamps
                  3. BFS traversing
                  4. Topological sort

   32.        If there are Θ (n2) entries in edit distance matrix then each entry E (i,
              ________ time to compute.

                  1. Θ (n)
                  2. Θ (n2)
                  3.   Θ (1)
                  4. Θ (n log n)

   33.        We can use the optimal substructure property to devise a ________ fo
              the edit distance problem.

                  1. Selective
                  2. Optimum
                  3. Iterative
                  4.   Recursive

   34.        The codeword assigned to characters by the Huffman algorithm have t

More CS502 files

All CS502 files · Midterm Prep 2026 · MCQs Bank