Cs-502 Mid Term Mcq_s by Vu Topper RM (3).pdf
Verified academic study resource for CS502 (Fundamentals of Algorithms) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 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
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- MCQ, MIDTERM
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS502.
What this file covers — CS502 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
Frequently asked questions
Where can I download Cs-502 Mid Term Mcq_s by Vu Topper RM (3).pdf for free?
You can preview and download "Cs-502 Mid Term Mcq_s by Vu Topper RM (3).pdf" (CS502 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs-502-mid-term-mcq-s-by-vu-topper-rm-3-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 Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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 Important Mid Term
Mcq’s Solution 100% Correct :
Solve By Vu-Topper RM!!
Question No:1 (Marks:1) Vu-Topper RM
The time assumed for each basic operation to execute on RAM model of computation is-----
➢Continuous
➢Variable
➢constant page 10
Question No:2 (Marks:1) Vu-Topper RM
If the indices passed to merge sort algorithm are not equal, the algorithm may return immediately.
➢True
➢false page 28
Question No:3 (Marks:1) Vu-Topper RM
Brute-force algorithm uses no intelligence in pruning out decisions.
➢False
➢True page 18
Question No:4 (Marks:1) Vu-Topper RM
In analysis, the Upper Bound means the function grows asymptotically no faster than its largest term.
➢False
➢True page 24
Question No:5 (Marks:1) Vu-Topper RM
For small values of n, any algorithm is fast enough. Running time does become an issue when n gets large.
➢Fast
➢True page 14
Question No:6 (Marks:1) Vu-Topper RM
Heaps can be stored in arrays without using any pointers; this is due to the ___ nature of the binary tree
➢right-complete
➢tree nodes
➢Left-complete page 40
Question No:7 (Marks:1) Vu-Topper RM
One of the clever aspects of heaps is that they can be stored in arrays without using any______
➢constants
➢variables
➢Point page 40
For More Help Vu-Topper RM Contact what’s app 0322-4021365
Question No:8 (Marks:1) Vu-Topper RM
How much time merge sort takes for an array of numbers?
➢T(n)
➢T( log n)
➢T(n log n) Page40
Question No:9 (Marks:1) Vu-Topper RM
The sequence of merge sort algorithm is:
➢Conquer-Divide-Combine
➢Divide-Conquer-Combine Page 27
➢Combine-Divide-Conquer
Question No:10 (Marks:1) Vu-Topper RM
In ______ Knapsack Problem, limitation is that an item can either be put in the bag or not. Fractional items are not
allowed.
➢1
➢0/1 Page 91
➢Fractional
Question No:11 (Marks:1) Vu-Topper RM
In Selection algorithm, we assume pivot selection takes theta _______ running time.
➢a. n Page – 36
➢n2
➢n3
Question No:12 (Marks:1) Vu-Topper RM
In Heap Sort algorithm (using max heap), when every time maximum elements removed from top ________.
➢it becomes Order n2 Algorithm
➢Divide and Conquer strategy helps us
➢We are left with a hole Page – 41
Question No:13 (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.
➢ O (q) Page – 84
➢O (1)
➢O (p x q)
For More Help Vu-Topper RM Contact what’s app 0322-4021365
Question No:14 (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.
➢second last
➢Last Page -41
➢First
Question No:15 (Marks:1) Vu-Topper RM
For comparison-based sorting algorithms, it is possible to sort more efficiently than Omega n log(n) time.
➢Sometimes not
➢NOT Pg 54
➢Sometimes
Question No:16 (Marks:1) Vu-Topper RM
In Sorting the key value or attribute_____ from an ordered domain.
➢Must be page 39
➢Not always
➢May be
Question No:17 (Marks:1) Vu-Topper RM
Result of asymptotical analysis of n(n -3) and 4n*n is that _______
➢n(n-1) is asymptotically Greater
➢Both are asymptotically Not equivalent
➢Both are asymptotically Equivalent page 23 (4n*n= 4n2)
Question No:18 (Marks:1) Vu-Topper RM
Floor and ceiling are ______ to calculate while analyzing algorithms
➢Very easy
➢3rd Option is missing
➢Usually considered difficult
Question No:19 (Marks:1) Vu-Topper RM
_____ of reference is an important fact of current processor technology.
➢Defining
➢Assigning
➢Locality pg-8
For More Help Vu-Topper RM Contact what’s app 0322-4021365
Question No:20 (Marks:1) Vu-Topper RM
Which of the following is calculated with Big O notation?
➢Medium bounds
➢Upper bounds Page – 25
➢Lower bounds
Question No:21 (Marks:1) Vu-Topper RM
Edit distance algorithm based on ________ strategy
➢Greedy
➢Dynamic Programming Page – 81
➢Divide and Conquer
Question No:22 (Marks:1) Vu-Topper RM
In Heapsort Algorithm, total time taken by heapify procedure is ________
➢O (log n) Page-43
➢O (log2 n)
➢O (n log n)
Question No:23 (Marks:1) Vu-Topper RM
Al-Khwarizmi was a/an _______
➢Artist
➢Astronomer
➢Mathematication p-7
Question No:24 (Marks:1) Vu-Topper RM
Pseudo code of algorithms are to be read by _______.
➢People Page -12
➢RAM
➢Computer
For More Help Vu-Topper RM Contact what’s app 0322-4021365
Question No:25 (Marks:1) Vu-Topper RM
The sieve technique is a special case, where the number of sub-problems is Just
_________
➢1 P-34
➢2
➢3
Question No:26 (Marks:1) Vu-Topper RM
More CS502 files
- CS502 MIDTERM FILE 1 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS502 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS502 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS502 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS502 MIDTERM FILE 10 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS502 MIDTERM FILE 2 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS502 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS502 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)