cs502 midterm quiz by smile 😊.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
- 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 cs502 midterm quiz by smile 😊.pdf for free?
You can preview and download "cs502 midterm quiz by smile 😊.pdf" (CS502 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-midterm-quiz-by-smile-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
6/6/22, 1:12 PM CS502 - Fundamentals of Algorithms
Fundamentals of Algorithms (CS
Multiple Choice Questions (MCQs)
Objective Questions
1. An optimization problem is one in which you want to find,
1. Not a solution
2. An algorithm
3. Good solution
4. The best solution
2. In ________ algorithm, at any time, the subset of edges A forms a sing
1. Kruskal's
2. Prim's
3. Both Kruskal's and Prim's
4. None of the given
3. Counting sort assumes that the numbers to be sorted are in the range
1. k to n where n is large
2. 1 to k where k is small
3. k to n where k is small
4. k to n where n is small
4. In Dynamic Programming approach, we do not store the solution to ea
problem in case if it reappears.
1. True
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0 1/8
6/6/22, 1:12 PM CS502 - Fundamentals of Algorithms
7. Shortest path problems can be solved efficiently by modeling the road
graph.
1. True
2. False
8. Adding an edge to a free tree creates.
1. A cycle
2. A complete MST
3. A partial MST
4. A shortest path
9. Although it requires more complicated data structures, Prim's algorithm
minimum spanning tree is better than Kruskal's when the graph has a
of vertices.
1. True
2. False
10. In Prim's algorithm, we start with the root vertex r; it can be any verte
1. True
2. False
11. In the clique cover problem, for two vertices to be in the same group, t
adjacent to each other.
1. True
2. False
12. According to parenthesis lemma. vertex u is a descendent of v vertex i
1. [d[u], f[u]] ⊆ [d[v], f[v]]
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0 2/8
6/6/22, 1:12 PM CS502 - Fundamentals of Algorithms
15. Dynamic Programming is a problem-solving approach in which ______
1. Problem is solved in Zero time
2. Solution is developed only at final stage
3. Both are correct
4. Both are incorrect
16. Networks are ________ in the sense that is possible from any location
network to reach any other location in the digraph.
1. Complete
2. Incomplete
3. Not graphs
4. Transportation
17. We say that two vertices u and v are mutually not reachable if u can re
vice versa.
1. True
2. False
18. We say that two vertices u and v are mutually ________ if u can reach
versa.
1. Crossed
2. Forward
3. Reachable
4. Nor Reachable
19. Consider three matrices X, Y, Z of dimensions 1 × 2, 2 × 3, 3 × 4 respe
number of multiplications of X(YZ) is:
1. 16
2. 23
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0 3/8
6/6/22, 1:12 PM CS502 - Fundamentals of Algorithms
2. False
23. The Huffman algorithm finds a(n) ________ solution.
1. Optimal
2. Non-optimal
3. Exponential
4. Polynomial
24. Chain matrix multiplication problem can be solved through ________ s
1. Dynamic programming
2. Greedy
3. Divide and conquer
4. Sorting
25. Strongly connected components are not affected by reversal of all edge
vertices reachability.
1. True
2. False
26. In kruskal's algorithm, the next edge is added to viable set A, if its add
induce a cycle.
1. True
2. False
27. You have an adjacency list for G, what is the time compexity to comput
transpose G^T.?
1. ? (V + E)
2. ? (V E)
3. ?(V)
https://genrica.com/virtual_university_papers_objective.aspx?course_code=CS502&level=0 4/8
6/6/22, 1:12 PM CS502 - Fundamentals of Algorithms
2. False
31. The ________ given by DFS allow us to determine whether the graph c
cycles.
1. Order
2. Time stamps
3. BFS traversing
4. Topological sort
32. If there are Θ (n2) entries in edit distance matrix then each entry E (i,
________ time to compute.
1. Θ (n)
2. Θ (n2)
3. Θ (1)
4. Θ (n log n)
33. We can use the optimal substructure property to devise a ________ fo
the edit distance problem.
1. Selective
2. Optimum
3. Iterative
4. Recursive
34. The codeword assigned to characters by the Huffman algorithm have tMore 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)