CS502 SOLVED MCQs FINAL TERM BY JUNAID.docx
Verified academic study resource for CS502 (Fundamentals of Algorithms) under the Computer Science at Virtual University of Pakistan. This DOC document (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 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
- DOC
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
- Tags
- MCQ, SOLVED, FINALTERM
Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS502, regardless of midterm scores.
What this file covers — CS502 syllabus roadmap
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 SOLVED MCQs FINAL TERM BY JUNAID.docx for free?
You can preview and download "CS502 SOLVED MCQs FINAL TERM BY JUNAID.docx" (CS502 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs502-solved-mcqs-final-term-by-junaid-docx) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS502 file?
This document covers Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (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-Design and Analysis of Algorithm (Solved MCS’s) LECTURE FROM (23 to 45) Junaidfazal08@gmail.com Bc190202640@vu.edu.pk FOR MORE VISIT VULMSHELP.COME JUNAID MALIK 0304-1659294 AL-JUNAID TECH INSTITUTE 1. Which method is preferable for dealing with chain matrix multiplication? Divide and conquer strategy Dynamic programming formulation Graph theory Greedy Approach 2. Huffman algorithm produces the…….prefix code tree. Better Optimal Worst Best 3. A….w is adjacent to vertex v if there is an edge from v to w. Acyclic Vertex Loop Cycle 4. Using ASCII standard the string “greedy” will be encoded with i. 44 bits ii. 120 bits iii. 40 bits iv. 48 bits 5. Find the maximum value of the items which can carry using knapsack weight capacity =50 Item weight Value 10 70 20 20 30 80 70 200 i. 90 ii. 280 iii. 200 iv. 100 6. In activity scheduling algorithm, each activity is represented by a i. Rectangle ii. Square AL-JUNAID TECH INSTITUTE iii. Circle iv. Triangle 7. Those problems in which greedy finds good, but not always best is called a greedy….. i. Heuristic ii. Solution iii. Result iv. Algorithm 8. The knapsack problem belongs to the domain of…..Problems i. Searching ii. Sorting iii. Linear solution iv. Optimization 9. The general coin change problem can be solved using i. Recursion ii. Greedy algorithm iii. Dynamic programming iv. Divide and conquer 10. Huffman algorithm produces the ............... prefix code tree i. Optimal ii. Better iii. Best iv. Worst 11. Huffman algorithm generates an optimum .......code i. Postfix ii. Infix iii. None of the given options iv. Prefix 12 ....... ways of representing graphics i. 1 ii. 2 iii. 3 iv. 4 13. Knapsack word originates from ……language i. German ii. English iii. French iv. Norwegian 14. Graphs are important ........ model for many application problems i. Mathematical ii. Unpredictable iii. Haphazard iv. Unsystematic 15. Which type of algorithm is harder to prove the correctness? i. Dynamic AL-JUNAID TECH INSTITUTE ii. Greedy iii. Divide and conquer iv. Brute force 16 ....... Items are not allowed in 0/1 knapsack problem i. Fractional ii. 0 iii. 1 iv. 0/1 17. Matrix multiplication is a(n)......... operation i. Nether commutative nor associative ii. Transitive iii. Commutative iv. Associative 18. 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) 19. DFS or BFS yields a ------------ of the graph. • Traversed tree • Spanning tree pg#125 • Simple tree • Free tree 20. Using ASCII code, each character is represented by a fixed-length code of ------------- bits percharacter. • 4 • 6 10 • 8 pg#100 21. 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. AL-JUNAID TECH INSTITUTE • Minimized • Decreased • Maximized pg#109 • None of the above given 22. 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 23. 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 24. The number of edges that come out of a vertex is called the ------------ of that vertex in thedigraph. • Post-degree • in-degree • out-degree pg#114 • pre-degree 25. 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 • 3x3pg#87 26. A/an --------- is one in which you want to find, not just a solution, but the best solution. AL-JUNAID TECH INSTITUTE • Optimization problem • Divide and Conquer • NP complete problem • Best problem 27. Fractional Knapsack is founded on ---------- method. • Greedy page no109 • Recursive • Divide and Conquer • Dynamic programming 28. 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) 29. In inductive approach of Knapsack problem, we consider 2 cases, ------------or ------------- --. • Median, Mode • Recursive, Iterative • Leave object, Take object pg#93 • Sequentially, Parallel 30. A Greedy algorithm can NOT be used to solve all the ------------ problems. • Dynamic programming (Google) • Memorization programming • Edit-distance programming • Storing value programming AL-JUNAID TECH INSTITUTE 31. In Huffman encoding, the -------- is the number of occurrences of a character divided by thetotal characters in the message. • Counting • Parsing • Relative Probability pg#100 • Weight 32. 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 33. Following is not the application of Edit Distance Problem. • Speech recognition pg#76 • Spelling correction • Ascending order • Computational Molecular Biology 34. Consider three Matrices X, Y, Z of dimensions 1x2, 2x3, 3x4 respectively. The number of multiplication of(XYZ) is: • 18 • 32 • 24 • 30 35. In ------------- Knapsack Problem, limitation is that an item can either be put in the bag ornot. Fractional items are not allowed. a. 0 b. 1 c. 0/1 pg#91 d. Fractional AL-JUNAID TECH INSTITUTE 36. An in-place sorting algorithm is one that ---------- uses additional array for storage. • Always • Permanently • Does not pg#54 • Sometime 37. 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. • P x q • P x r page#84 • q x r • q x p 38. 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
More CS502 files
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS502 - FINAL TERMA SUBJECTIVE SOLVED WITH REFERENCE.doc (DOC · Final-Term)
- CS502 - Final term solved Mcqs with references by Moaaz.doc (DOC · Final-Term)
- CS502 - Final term solved Mcqs with references by Moaaz.pdf (PDF · Final-Term)
- CS502 - Final term solved Subjective with references by Moaa (DOC · Final-Term)
- CS502 - Final term solved Subjective with references by Moaa (PDF · Final-Term)
- CS502 FINAL SEP.pdf (PDF · Final-Term)
- CS502 FINAL TERM CURRENT PAPER 2022 SOLVED BY PRNCE ALVI.pdf (PDF · Final-Term)