cs502-final-term-mcqs-solved-with-references-by-moaaz.pdf

Verified academic study resource for CS502 (Fundamentals of Algorithms) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack compiled by Moaaz Siddhu) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 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
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Compiled by
Moaaz Siddhu
Tags
MCQ, SOLVED, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS502, regardless of midterm scores.

What this file covers — CS502 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. 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-final-term-mcqs-solved-with-references-by-moaaz.pdf for free?

You can preview and download "cs502-final-term-mcqs-solved-with-references-by-moaaz.pdf" (CS502 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-final-term-mcqs-solved-with-references-by-moaaz-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 Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (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

                             CS502- Fundamentals of Algorithms
                                              Solved MCQS                              July 10,2013
                                      From Final term Papers
    MC100401285            Moaaz.pk@gmail.com           Mc100401285@gmail.com                 PSMD01

                                    FINALTERM EXAMINATION
                                            Spring 2010
                             CS502- Fundamentals of Algorithms (Session - 4)

Question No: 1 ( Marks: 1 ) - Please choose one
An optimization problem is one in which you want to find,
   ► Not a solution
   ► An algorithm
   ► Good solution
   ► The best solution (Page 97)

Question No: 2 ( Marks: 1 ) - Please choose one
 Although it requires more complicated data structures, Prim's algorithm for a minimum spanning tree is better
than Kruskal's when the graph has a large number of vertices.

    ► True click here 4 detail
    ► False

Question No: 3 ( Marks: 1 ) - Please choose one
If a problem is in NP, it must also be in P.
     ► True
     ► False
     ► unknown (Page 173)

Question No: 4 ( Marks: 1 ) - Please choose one
What is generally true of Adjacency List and Adjacency Matrix representations of graphs?

    ► Lists require less space than matrices but take longer to find the weight of an edge (v1,v2)
    ► Lists require less space than matrices and they are faster to find the weight of an edge (v1,v2)
    ► Lists require more space than matrices and they take longer to find the weight of an edge (v1,v2)
    ► Lists require more space than matrices but are faster to find the weight of an edge (v1,v2)
 click here 4 detail

                                                                                                  1

Question No: 5 ( Marks: 1 ) - Please choose one
If a graph has v vertices and e edges then to obtain a spanning tree we have to delete
     ► v edges.
     ► v – e + 5 edges
     ► v + e edges.
     ► None of these

Question No: 6 ( Marks: 1 ) - Please choose one
Maximum number of vertices in a Directed Graph may be |V2|
   ► True
   ► False     click here for details

Question No: 7 ( Marks: 1 ) - Please choose one
The Huffman algorithm finds a (n) _____________ solution.
   ► Optimal       click here for detail
   ► Non-optimal
   ► Exponential
   ► Polynomial

Question No: 8 ( Marks: 1 ) - Please choose one
The Huffman algorithm finds an exponential solution
   ► True
   ► False

Question No: 9 ( Marks: 1 ) - Please choose one
The Huffman algorithm finds a polynomial solution
   ► True
   ► False

Question No: 10 ( Marks: 1 ) - Please choose one
The greedy part of the Huffman encoding algorithm is to first find two nodes with larger frequency.
   ► True
   ► False (Page 100)

Question No: 11 ( Marks: 1 ) - Please choose one
 The codeword assigned to characters by the Huffman algorithm have the property that no codeword is the
postfix of any other.

    ► True      (Page 101)
    ► False

                                                                                                2

Question No: 12 ( Marks: 1 ) - Please choose one
 Huffman algorithm uses a greedy approach to generate a postfix code T that minimizes the expected length B
(T) of the encoded string.
    ► True
    ► False (Page 102)

Question No: 13 ( Marks: 1 ) - Please choose one
Shortest path problems can be solved efficiently by modeling the road map as a graph.
   ► True (Page 153)
   ► False

Question No: 14 ( Marks: 1 ) - Please choose one
 Dijkestra’s single source shortest path algorithm works if all edges weights are non-negative and there are
negative cost cycles.
    ► True
    ► False (Page 159)

Question No: 15 ( Marks: 1 ) - Please choose one
Bellman-Ford allows negative weights edges and negative cost cycles.
   ► True
   ► False (Page 159)

Question No: 16 ( Marks: 1 ) - Please choose one
The term “coloring” came form the original application which was in architectural design.
   ► True
   ► False (Page 176)

Question No: 17 ( Marks: 1 ) - Please choose one
In the clique cover problem, for two vertices to be in the same group, they must be adjacent to each other.
    ► True (Page 176)
    ► False

Question No: 18 ( Marks: 1 ) - Please choose one
Dijkstra’s algorithm is operates by maintaining a subset of vertices
   ► True (Page 155)
   ► False

Question No: 19 ( Marks: 1 ) - Please choose one
 The difference between Prim’s algorithm and Dijkstra’s algorithm is that Dijkstra’s algorithm uses a different
key.
     ►True ( Page 156)
     ► False

                                                                                                    3

Question No: 20 ( Marks: 1 ) - Please choose one
Consider the following adjacency list:

Which of the following graph(s) describe(s) the above adjacency list?

                                                                        4

    ►                                    Correct Option

Question No: 21 ( Marks: 1 ) - Please choose one
We do sorting to,
   ► keep elements in random positions
   ► keep the algorithm run in linear order
   ► keep the algorithm run in (log n) order
   ► keep elements in increasing or decreasing order (Page 40)

Question No: 22 ( Marks: 1 ) - Please choose one
After partitioning array in Quick sort, pivot is placed in a position such that
   ► Values smaller than pivot are on left and larger than pivot are on right (Page 48)
   ► Values larger than pivot are on left and smaller than pivot are on right
   ► Pivot is the first element of array
   ► Pivot is the last element of array

Question No: 23 ( Marks: 1 ) - Please choose one
Merge sort is stable sort, but not an in-place algorithm
   ► True (Page 54)
   ► False

Question No: 24 ( Marks: 1 ) - Please choose one
 In counting sort, once we know the ranks, we simply _________ numbers to their final positions in an output
array.
     ► Delete
     ► copy (Page 57)
     ► Mark
     ► arrange

More CS502 files

All CS502 files · Midterm Prep 2026 · MCQs Bank