CS502 Final Term Solved MCQs by VU Malik
- Type
- Final term past paper
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 1.7 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 53. Download the file for all 53 pages.
Q01. (Marks:01)
VU Malik
If we encode and compress text using ASCII standard each character is represented b A. Fixed length code word of 4 bits B. Variable length code word up to 4 bits
C. Fixed length code word of 8 bits
D. Variable length code word up to 8 bits
Q02. (Marks:01)
VU Malik
G power T for graph can be computed in A. Theta(VE) B. Theta(V log E) C. Theta(E log V)
D .Theta (V+E)
Q03. (Marks:01)
VU Malik
Adding any edge to free tree
A .Keep it free tree and increase the size of the tree
B. Create a unique cycle C. Not allow to add edge to free tree D. Create multiple cycles
Q04. (Marks:01)
VU Malik
Which sorting algorithn is faster : A. O(n^2) B. O(nlogn)
C. O(n+k)
D. O(n^3)
Q05. (Marks:01)
VU Malik
There are no edges in undirected graph. A . Forward B. Back C. Cross
D. Both forward and back
Q06. (Marks:01)
VU Malik
Adding any edge to a free tree creates a unique A. Vertex
B. cycle
C. Edge D. Strong component
Q07. (Marks:01)
VU Malik
Networks are complete in the sense that it is possible from any location in the network to reach any other location in the digraph.
A. True
B. False
Q08. (Marks:01)
VU Malik
Runtime complexity of Prim's algorithm is A. V log V
B. E log V
C. log V D. None of the above
Q09. (Marks:01)
VU Malik
In Prim's algorithm, we start with the vertex r; it can be any vertex. A. First B. Leaf
C. root
D. Mid
Q10. (Marks:01)
VU Malik
Adding any edge to a free tree creates a unique cycle.
A. true
B. false
Q11. (Marks:01)
VU Malik
For undirected graph, there is no distinction between forward and back edges.
A. true
B. false
Q12. (Marks:01)
VU Malik
in strong components algorithm, first of all DFS is run for computing finish times of vertices.
A. true
B. false
Q13. (Marks:01)
VU Malik
Which method is preferable for dealing with chain matrix multiplication?
Correct answer: Dynamic programming formulation
Q14. (Marks:01)
VU Malik
Huffman algorithm produces the…….prefix code tree. A. Better
B. Optimal
C. Worst D. Best
Q15. (Marks:01)
VU Malik
A….w is adjacent to vertex v if there is an edge from v to w. A. Acyclic
B. Vertex
C. Loop D. Cycle
Q16. (Marks:01)
VU Malik
Using ASCII standard the string “greedy” will be encoded with A. 44 bits B. 120 bits C. 40 bits
D. 48 bits
Q17. (Marks:01)
VU Malik
In activity scheduling algorithm, each activity is represented by a
A. Rectangle
B. Square C. Circle D. Triangle
Q18. (Marks:01)
VU Malik
Those problems in which greedy finds good, but not always best is called a greedy…..
A. Heuristic
B. Solution
Related CS502 files
All CS502 files →- CS502 Final Term MCQs by Waqar Siddhu Final term PDF 10.9 MB
- CS502 Final Term Solved MCQs by Junaid Final term PDF 2.3 MB
- CS502 Final Term Solved File 2 by Waqar Siddhu Final term PDF 2.7 MB
- CS502 Final Term Subjective Set 2 by Waqar Siddhu Final term PDF 6.5 MB
- CS502 Official Handouts Official handout PDF 1.3 MB Free
- CS502 Solved Quiz 1 by VUBuddy Quiz PDF 682 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.