CS502 Quiz-1 By Vu Topper RM.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-1 By Vu Topper RM.pdf for free?

You can preview and download "CS502 Quiz-1 By Vu Topper RM.pdf" (CS502 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-quiz-1-by-vu-topper-rm-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

    CS-502 Fundamentals Of Algorithms
   Update MCQS For Quiz-2 File
    Solve By Vu Topper RM

          80 To 100% Marks

For More Help Contact What’s app 03224021365

Question No: 01               (Marks:1)               Vu-Topper RM
There are __________ entries in the Edit Distance Matrix.
  A. ϴ (n)
  B. ϴ (n2)           Page 84
  C. ϴ (n+2)
  D. ϴ (n + 100)

Question No: 02                 (Marks:1)              Vu-Topper RM
For average-case time analysis of Quick sort algorithm, Pivot selection
is on average basis from ______
   A. All possible random values           Page 50
   B. Pivot is input separately
   C. Values greater than 5

Question No: 03              (Marks:1)             Vu-Topper RM
As per algorithm of Dynamic Programming, we need to store
  A. First sub-problem only
  B. Best solution only
  C. Intermediate sub-problems         Page 75
  D. Final solution only

Question No: 04                 (Marks:1)                Vu-Topper RM
In chain matrix multiplication, table is filled _________ to find the
multiplication of matrix.
   A. row wise
   B. column wise
   C. diagonally
   D. bottom-to-up        Page 86

Question No: 05                  (Marks:1)               Vu-Topper RM
The only way to convert a string of i characters into the empty string is
with i deletions, represented as
  A. E(0.j) =j
  B. E(i.j) = 1
  C. E(0.i) = j
  D. E (i.0)=I       Page 78

Question No: 06                   (Marks:1)                 Vu-Topper RM
If there are θ (n ) entries in edit distance matrix then the total running
                  2

time is:
    A. θ (n)
    B. θ (1)
    C. θ (n2)          Page 84
    D. θ (n logn)

Question No: 07                (Marks:1)                Vu-Topper RM

   For More Help Contact What’s app 03224021365

In average –case time analysis of quick sort algorithm , the most
balanced case for partion is when we divide the list of elements into _.
   A. Equal no. of pieces as of input elements
   B. Single piece exactly
   C. Two nearly equal pieces
   D. Three nearly equal pieces

Question No: 08                  (Marks:1)               Vu-Topper RM
If matrix A of dimension p x q is multiply with matrix B of dimension q
x r, then each entry in resultant matrix takes _______ time.
   A. O (q)              Page 84
   B. (1)
   C. (p x q)
   D. (q x r)

Question No: 09             (Marks:1)             Vu-Topper RM
Fibonacci Sequence was named on ______, a famous mathematician in
12th Century.
   A. Fred Brooks
   B. Grady Booch
   C. Leonardo Pisano     Page 73
   D. Edgar F. Codd

Question No: 10                (Marks:1)             Vu-Topper RM
In quick sort algorithm, we choose pivot___________.
   A. Always the smallest element
   B. Greater than 5
   C. Randomly              Page 35
   D. Less than 5

Question No: 11               (Marks:1)                 Vu-Topper RM
For comparison-based sorting algorithms, it is possible to sort more
efficiently than Omega n log(n) time.
   A. Always
   B. Sometimes not
   C. NOT                    Page 54
   D. Sometimes

Question No:12               (Marks:1)                Vu-Topper RM
The sequence of merge sort algorithm is:
   A. Divide Combine-Conquer
   B. Conquer-Divide-Combine
   C. Divide-Conquer-Combine                  Page 27
   D. Combine-Divide-Conquer
Question No: 13               (Marks:1)               Vu-Topper RM
In ______ Knapsack Problem, limitation is that an item can either be

   For More Help Contact What’s app 03224021365

put in the bag or not. Fractional items are not allowed.
  A. 0
  B. 1
  C. 0/1                        Page 91
  D. Fractional

Question No: 14                (Marks:1)               Vu-Topper RM
In Selection algorithm, we assume pivot selection takes theta
__________ running time.
   A. n                 Page 36
   B. n2
   C. n3
   D. log (n)

Question No: 15               (Marks:1)               Vu-Topper RM
In Heap Sort algorithm (using max heap), when every time maximum
elements removed from top ________.
   A. We call merge Sort Algorithm
   B. it becomes Order n2 Algorithm
   C. Divide and Conquer strategy helps us
   D. We are left with a hole              Page 41

Question No: 16                 (Marks:1)               Vu-Topper RM
_________ is a method of solving a problem in which we check all
possible solutions to the problem to find the solution we need.
  A. Plane-Sweep Algorithm
  B. Sorting Algorithm
  C. Brute-Force Algorithm                   Google
  D. Greedy approach

Question No: 17               (Marks:1)               Vu-Topper RM
The worst case running time of Quick sort algorithm _____.
  A. Is quadratic
  B. Is linear
  C. Cannot be quadratic
  D. ls always Exponential

Question No: 18               (Marks:1)               Vu-Topper RM
In max heap (for Heap Sort algorithm), when every time maximum
element is removed from top we replace it with _____ leaf in the tree.
   A. Last                        Page 41
   B. First
   C. Any
   D. Second last

Question No: 19                (Marks:1)                   Vu-Topper RM

   For More Help Contact What’s app 03224021365

Quick sort algorithm was developed by –
  A. AlferdAho
  B. Sedgewick
  C. John Vincent Atanasoff
  D. Tony Hoare                  Google

Question No: 20                (Marks:1)              Vu-Topper RM
If Matrix-A has dimensions “3×2” and Matrix-B has dimensions “2×3”,
then multiplication of Matrix-A and Matrix-B will result a new Matrix-
C having dimensions.
   A. 3×2
   B. 2×3
   C. 2×2
   D. 3×3

Question No: 21                 (Marks:1)              Vu-Topper RM
In Sorting the key value or attribute __________ from an ordered
domain.
   A. Must be                 Page 39
   B. Not always
   C. May be
   D. Occasionally

Question No: 22                (Marks:1)                 Vu-Topper RM
Result of asymptotical analysis of n(n -3) and 4n*n is that _______
  A. n(n-1) is asymptotically Less
  B. n(n-1) is asymptotically Greater
  C. Both are asymptotically Not equivalent
  D. Both are asymptotically Equivalent                 Page 23

More CS502 files

All CS502 files · Midterm Prep 2026 · MCQs Bank