CS502 Quiz 1 Arsal Shani & Aina Malik By MCS Family Group.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 Arsal Shani & Aina Malik By MCS Family Group.pdf for free?

You can preview and download "CS502 Quiz 1 Arsal Shani & Aina Malik By MCS Family Group.pdf" (CS502 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-quiz-1-arsal-shani-aina-malik-by-mcs-family-group-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

                                 CS502: QUIZ 1
SOLVED BY: ARSL SHANI, AINA MALIK&MCS FAMILY
                   GROUP
 1) For a Diagraph G= (V.E), Sum of in-degree (v) -----------------.
      • Not equal to sum of out-degree(v)
      • = sum of out-degree(v) pg#115
      • < sum of out-degree(v)
      • > sum of out-degree(v)

 2) DFS or BFS yields a-------------of the graph.
      • Traversed tree
      • Spanning tree pg#125
      • Simple tree
      • Free tree

 3) Using ASCII code, each character is represented by a fixed-length code of-------------bits per character.
      • 4
      • 6
      • 8 pg#100
      • 10

 4) 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 the Knapsack.
       • Minimized
       • Decreased
       • Maximized pg#109
       • None of the above given

5) Consider the string”abcdaacac”,if the string is coded with ASCII codes, the message length would be---
     • 70 bits
     • 60 bits
     • 90 bits
     • 72 bits                 conceptual

6) A graph is said to be acyclic if it contains---------.
     • At least one cycle
     • Exactly one cycle
     • Always more than one cycle
     • No cycles pg#116

7) The number of edges that come out of a vertex is called the-------------of that vertex in the digraph.
     • Post-degree
     • in-degree
     • out-degree pg#114
     • pre-degree

8) If Matrix-A has dimensions “3x2” and Matrix-B has dimensions “2x3”, then multiplication of Matrix-A
   and Matrix-B will result a new Matrix-C having dimensions.
       • 3x2
       • 2x3
       • 2x2
       • 3x3     pg#87

9) A/an----------is one in which you want to find, not just a solution, but the best solution.
     • Optimization problem
     • Divide and Conquer
     • NP complete problem
     • Best problem

10) Fractional Knapsack is founded on-----------method.
       • Greedy
       • Recursive
       • Divide and Conquer
       • Dynamic programming

11) If the graph is represented using an adjacency matrix, then Breadth-first search takes------------time.
        • O(E+1)
        • O(V^2)
        • O(V)
        • O(E)

12) In inductive approach of Knapsack problem, we consider 2 cases, ------------or---------------.
       • Median, Mode
       • Recursive, Iterative
       • Leave object, Take object pg#93
       • Sequentially, Parallel

13) A Greedy algorithm can NOT be used to solve all the-------------problems.
       • Dynamic programming (Google)
       • Memorization programming
       • Edit-distance programming
       • Storing value programming

14) In Huffman encoding, the---------is the number of occurrences of a character divided by the total
    characters in the message.
       • Counting
       • Parsing
       • Relative Probability pg#100
       • Weight

15) The Binary Tree constructed by a Huffman Encoding is a:
      • Full Binary Tree pg#102
      • Partial Binary Tree
      • Incomplete Binary Tree
      • None of the given option

16) Following is not the application of Edit Distance Problem.
      • Speech recognition pg#76
      • Spelling correction
      • Ascending order
      • Computational Molecular Biology

17) Consider three Matrices X, Y, Z of dimensions 1x2, 2x3, 3x4 respectively. The number of
    multiplication of(XYZ) is:
      • 18
      • 32
      • 24
      • 30

18) In ------------- Knapsack Problem, limitation is that an item can either be put in the bag or not.
   Fractional items are not allowed.
      • 0
      • 1
      • 0/1 pg#91
      • Fractional

19) An in-place sorting algorithm is one that-----------uses additional array for storage.
      • Always
      • Permanently
      • Does not pg#54
      • Sometime

20) If Matrix-A has dimensions “pxq” and Matrix-B has dimensions “qxr”, then multiplication of Matrix-A
    and Matrix-B will result a new Matrix-C having dimensions.
       • Pxq
       • Pxr                    page#84
       • qxr
       • qxp

21) Counting sort is suitable to sort the elements in range 1 to K.
      • K is large
      • K is small pg#71
      • K may be large or small
      • None

22) When matrix A of 5x 3 is multiply with matrix B of 3x 4 then the multiplication required is:
     • 15
     • 12
     • 36
     • 60

23) -------------is a linear time sorting algorithm.
       • Merge sort
       • Quick sort
       • Bubble sort
       • Radix sort

24) In Dynamic Programming approach, we do not store the solution to each sub problem in case if it
    reappears.
       • True
       • False            page#75

25) Dynamic Programming approach is usually useful in solving optimization problem.
      • True               page#97
      • False

26) Which of the following algorithm provides an optimal solution for the activity selection problem?
     • Divide and Conquer
     • Brute force
     • Greedy pg#105
     • Recursive

27) A graph is---------- if every vertex can reach every other vertex.
      • Connected pg#116
      • Cycle
      • Acyclic
      • Loop

28) In a Huffman encoding when a new node is created by combining two nodes, the new node is placed in
    the ________.
   • Priority queue pg#100
   • Linked list
   • Min heap tree
   • Graph traversal

29) Huffman algorithm produces the _________ prefix code
  • Optimal pg#105
  • Best
  • Worst
  • Better

30) In ________ algorithm, you hope that by choosing a local optimum at each step, you will end up a global
    optimum.
  • Simple
  • Divide and conquer
  • Greedy pg#97
  • Brute Force

    31) The string “Imncde” is coded with ASCII code, the message length would be ____ bits.
          • 24
          • 36
          • 48                        conceptual (page 99)
          • 60

    32) For graph traversal, breadth-first search strategy _________
       • Is always recursive

More CS502 files

All CS502 files · Midterm Prep 2026 · MCQs Bank