Cs502QuizNo1CompleteSolvedFilebyMahamShahZill.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
MCQ Bank
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 Cs502QuizNo1CompleteSolvedFilebyMahamShahZill.pdf for free?

You can preview and download "Cs502QuizNo1CompleteSolvedFilebyMahamShahZill.pdf" (CS502 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502quizno1completesolvedfilebymahamshahzill-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 No1 Complete Solved File
Pseudo code of algorithms are to be read by ___________.
Select correct option
People
RAM
Computer
Compiler

Approach of solving geometric problems by sweeping a line
across the plane is called ________sweep.
Select correct option
Line
Plane
Cube
Box
For average-case time analysis of Quick sort algorithm, Pivot
selection is on average basis from _________
Select correct option
half of the input values
all possible random values
Pivot is input separately

values greater than 5
Insertion sort is an in-place sorting algorithm.
Select correct option
True
False

Heap sort is a/an and _ sorting algorithm.
Select correct option
Not in-place, not stable one
In-place, stable one
In-place, not stable one
Not in-place, stable one

Merge sort is based on___________.
Select correct option
Brute-force
Plan-sweep
Axis-sweep
Divide and Conquer

While solving Selection problem, in Sieve technique we partition
input data __________
Select correct option
In increasing order
In decreasing order
According to Pivot
Randomly

Quick sort is a not a partitioning-based algorithm.
Select correct option
True
False
In Heap Sort algorithm, the first step is to _________
Select correct option

Call Build-Heap procedure

Sort the array in descending order

Call Heapify procedure

Find the number of input elements

In Heap Sort algorithm (using max heap), when every time
maximum element is removed from top ___________
Select correct option

We call merge Sort algorithm

It becomes Order n2 Algorithm

Divide and Conquer strategy helps us

We are left with a hole

The running time of Quick sort algorithm _________
Select correct option

Is impossible to compute

Has nothing to do with pivot selection

Is Random upon each execution

Greatly influenced by the selection of pivot

In asymptotical analysis of n*(5 + 2) – 3 , as n becomes large, the
dominant (fastest growing) term is some constant times ________
Select correct option

n_1

n

n+1

n*n

The total running time for Selection algorithm is ___________
Select correct option

Quadratic

Linear

Geometric

Exponential

Quick sort is a not a partitioning-based algorithm.
Select correct option

True

False

The main purpose of mathematical analysis is measuring the
____________required by the algorithm.
Select correct option

Space

Execution time

Inputs & outputs

Execution time and memory

Result of asymptotical analysis of n(n - 3) and 4n*n is that
___________.
Select correct option

n(n-1) is asymptotically Less

n(n-1) is asymptotically Greater

Both are asymptotically Not equivalent

Both are asymptotically Equivalent
Upper bound requires that there exist positive constants c2 and
n0 such that
f(n) ____ c2n for all n <= n0

Select correct option

Less than

Equal to or Less than

Equal or Greater than

Greater than

Merge sort have running time......running time of Heap sort.
Select correct option

Greater than

Less than

Equal to

Different than

Algorithms having O (order) _______ running time are considered
to be slow ones.
Select correct option

n

n2

n3

log (n)

Boolean operation is a ________ operation on an idealized RAM
model of computation.
Select correct option

Starting

Basic

Advance

Normal

The main purpose of mathematical analysis is measuring the
____________required by the algorithm.
Select correct option

Space

Execution time

Inputs & outputs

Execution time and memory

In average-case time analysis of Quick sort algorithm, the most
balanced case for partition is when we divide the list of elements
into _________
Select correct option

Equal no. of pieces as of input elements

Single piece exactly

Two nearly equal pieces

Three nearly equal pieces
Algorithm is a sequence of computational steps that .....the input
into output.
Select correct option

Merge

Assign

Transform

Integrate

The Iteration method is used for ____________
Select correct option

Comparing sorting algorithms only

Solving Recurrence relations

Merging elements in Merge sort

Dividing elements in Merge sort
In plane sweep approach of solving geometric problems, a
________is swept across the plane.
Select correct option

Line

Plane

Cube
Box
Counting sort is suitable to sort the elements in range 1 to k:
Select correct option

K is large

K is small

K may be large or small

None

In ____________ we have to find rank of an element from given
input.
Select correct option

Merge sort algorithm

Selection problem

Brute force technique

Plane Sweep algorithm

Rank of an element can be defined as ____________
Select correct option

One minus the number of elements that are smaller

Two plus the number of elements that are greater

One plus the number of elements that are smaller

Two minus the number of elements that are smaller

The total no of arguments passed to merge sort algorithm is
_______
Select correct option

2

3

4

5

In Heap Sort algorithm, the total running time for Heapify
procedure is ____________
Select correct option

Theta (log n)

Order (log n)

Omega (log n)

O (1) i.e. Constant time

A sorting algorithm is called as ________ if duplicate elements
remain in the same relative position after sorting.
Select correct option

Parallel

O(n) algorithm

Stable

Complex
Al-Khwarizmi was a/an.......
Select correct option

Artist

Mathematician

Astronomer

Khalifah

_________ is one of the few problems, where provable lower
bounds exist on how fast we can sort.
Select correct option

Searching

Sorting

Both Searching & Sorting

Graphing

The worst case running time of Quick sort algorithm
____________
Select correct option

Cannot be quadratic

Is quadratic

Is always Exponential

Is linear
In Heap Sort algorithm, Heapify procedure is ____________ in
nature.
Select correct option

Recursive

Non-Recursive

While solving Selection problem, in Sieve technique we choose
pivot ___________
Select correct option

Minimum element

Maximum element

Randomly

Average element

Which one is not passed as parameter in Quick sort algorithm?
Select correct option

End of the array

Middle of the array

Array (containing input elements)

Start of the array

More CS502 files

All CS502 files · Midterm Prep 2026 · MCQs Bank