CS502 Quiz 1 fall 2022 mega file.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 fall 2022 mega file.pdf for free?

You can preview and download "CS502 Quiz 1 fall 2022 mega file.pdf" (CS502 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-quiz-1-fall-2022-mega-file-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

CS610-Computer Network

  SOLVED MCQS QUIZ 1

   LEACTURE (1 to 10)

 Solved by JUNAID MALIK

              [DOCUMENT TITLE]
                        [DOCUMENT SUBTITLE]

                                   ALI HAIDER
                                [COMPANY NAME]
                                [Company address]

AL-JUNAID INSTITUTE OF GROUP
 1. In heap sort algorithm, the total running time for heavily procedure is
     _.
  Big-oh(log n)
  O (1) i.e. Constant time
  Theta (log n)
  Omega (log n)
  2. Quick sort algorithm is required a lot of comparison in the ____
     condition.
  Worse case
  Best and average case
  Average case
  Best case
  3. In heap sort algorithm (using max heap). When every time maximum
     element is removed from top.
  Divide and conquer strategy helps us
  We are left with a lot
  We call merge sort algorithm
  It becomes order n2 algorithm
  4. In average-case time analysis of quick sort algorithm,
    The most balanced case for partition is where we divide the list of
    element into ________
  Three nearly equal pieces
  Single piece exactly
  Two nearly piece
  Equal no. of piece as of input element
  5. Consider three matrices X,Y,Z dimensions 1×2.2×.3×4 respectively.
     The number of multiplication of (XYZ) is:
  32
  30
  24
  18

AL-JUNAID INSTITUTE OF GROUP
 6. Quicksort is a/an _____ and______ sorting algorithm.
   In-place, not stable one
   Not in-place, stable one
   In-place, stable one
   Not in-place, not stable one
  7. ________items are not allowed in the 0/1 knapack.
  Lighter
  Whole
  Weighty
  Fractional
  8. The main purpose of mathematical analysis is measuring the ______
     required by the algorithm.
  Space
  Execution time and memory
  Input & output
  Execution time
  9. Execution time of an algorithm can be measured by __________.
  Divide and conquer approach
  Both brute force and divide and conquer approach
  Mathematical analysis
  Brute force approach
  10. Quick sort is based on ________ strategy.
  Graph theory
  Divide-and-conquer
  Dynamic programming
  Greedy approach
  11. A sorting algorithm is called as ______ if duplicate element remain in
     the same relative position after sorting.
  O(n) algorithm
  Stable
  Parallel

AL-JUNAID INSTITUTE OF GROUP
  Complex
  12. Which one sorting algorithm is best suited to sort an array of 2 million
     elements?
  Insert sort
  Quick sort
  Merge sort
  Bubble sort
  13. We can use the ___________ property to devise a recursive
     formulation of the edit distance problem.
  Algorithm
  Small substructure
  Optimal substructure
  Real
  14. While sorting. The ordered domain means for any two input elements
     x and y ________ satisfies only.
  All of the above
  x>y
  x<y
  x=y
  15. 8n2 + 2n -3 will eventually exceed c2*(n) no matter how large we
     make _____.
  2n
  n
  this equation
  c2
  16. ________ is a method of solving a problem in which we check all
     possible solution to the problem to find the solution we need.
  Sorting algorithm
  Greedy approach
  Plane-sweep algorithm
  Brute-force algorithm

AL-JUNAID INSTITUTE OF GROUP
 17.In quick sort algorithm, provost form ________.
   Graph
   Stack
   Binary search tree
   Queue
  18. In asymptotical analysis of n(n -3) and 4n*n, as n becomes large, the
     dominant (fastest growing) term is some constant time_______
  n +1
  n*n
  n
  n-1
  19. 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
  2×3
  2×2
  3×2
  3×3
  20. Boolean operation is a ________ operation on an idealized RAM
     model of computation.
  Advance
  Normal
  Basic
  Starting
  21. There are __________ entries in the Edit Distance Matrix.
  ʘ (𝑛 )
  ʘ ( n+100)
  ʘ (n)
  ʘ (n+2)
  22. Counting sort is suitable for sorting the elements within range 1 to P.
     where__________

AL-JUNAID INSTITUTE OF GROUP
   P is undetermined
   P is small
   P is very large
   P is large
  23. Suppose we have 4 matrices A,B,C,D. what is correct expansion of
     m[1,2] in chain matrix multiplication?
  m[1,2] = m[1,1] + m[2,2] +p0 . p1. p3
  m[1,2] = m[1,1] + m[2,2] +p0 . p1. p3
  m[1,2] = m[1,1] + m[2,2] +p0 . p1. p3
  m[1,2] = m[1,1] + m[2,2] +p0 . p1. p3
  24. Which one is not passed as parameter in Quick Sort algorithm?
  Array (containing input elements)
  Middle of the array
  Start of the array
  End of the array
  25. In asymptotical analysis of n*(5+2)-3. As n becomes large, the
     dominant (fastest growing) term is some constant times______
  n+1
  n*n
  n
  n_1
  26. For ______ values of n, any algorithm is fast enough.
  Medium
  Small
  Infinity
  Large
  27.Dynamic programming algorithms often use some kind of ________
     to store the result of intermediate sub-problems.
  Stack
  Loop
  Table

AL-JUNAID INSTITUTE OF GROUP
  Variable
  28.In selection problem, the Sieve technique works in______
  One complete go
  Constant time
  Non-recursive manner
  Phases
  29.In heap Sort algorithm, the maximum levels an element can move
     upward is ___________.
  Theta (log n)
  O (1) i.e. Constant time
  Omega (log n)
  Big-oh (log n)
  30.While analysis of the brute-force maxima algorithm, an array storted
     in the reverse order is the type of _________ case input.
  Worst
  Best
  Somewhat
  Average
  31.1Divide-and-Conquer is as breaking the problem into small number of
        Smaller Sub Problems
        Pivot
        Sieve
  32.Analysis of Selection Sort ends up with
  T(n)
  T(1/1+n)
  T(n/2)
  T((n/2) +n)
  33.For a digraph G = (V, E), Sum of in-degree(v) ____________
        Not equal to Sum of out-degree(v)
       = Sum of out-degree(v)

More CS502 files

All CS502 files · Midterm Prep 2026 · MCQs Bank