- Type
- Quiz
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 871 KB
- 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 1, 2, 3 of 41. Download the file for all 41 pages.
CS-502 (Fundamentals of Algorithms)
Grand Quiz - Fall 2020
If you found any error in the file, Please correct it accordingly.
Q1. The sequence of merge sort algorithm is:
Correct answer: Divide-Conquer-Combine
Q2. In ______ Knapsack Problem, limitation is that an item can either be put in the bag or not. Fractional items are not allowed.
Correct answer: 0/1
Q3. In Selection algorithm, we assume pivot selection takes theta _______ running time.
Page - 36
b. n2 c. n3 d. log (n)
Q4. In Heap Sort algorithm (using max heap), when every time maximum elements removed from top ________.
Correct answer: We are left with a hole
Page – 41
Q5. 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.
Page - 84
b. O (1) c. O (p x q) d. O (q x r)
Q6. _________ is a method of solving a problem in which we check all possible solutions to the problem to find the solution we need.
Correct answer: Brute-Force Algorithm
d. Greedy approach
Q7. The worst case running time of Quick sort algorithm _____.
Correct answer: Is quadratic google QuickSort and its Analysis ( ) &
Q8. In max heap (for Heap Sort algorithm), when every time maximum element is removed from top we replace it with _____ leaf in the tree.
Correct answer: Last
Page -41
c. First d. Any
Q9. Quick sort algorithm was developed by -
Correct answer: Tony Hoare
– Google wikipedia
Q10. 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.
Correct answer: 3x3
Q11. For comparison-based sorting algorithms, it is possible to sort more efficiently than Omega n log(n) time.
Correct answer: Not
P-54
c. Sometimes d. Sometimes not
Q12. Dynamic Programming approach is usually useful in solving optimization problems.
Correct answer: True
Q13. In Sorting the key value or attribute_____ from an ordered domain.
Correct answer: Must be
Q14. Result of asymptotical analysis of n(n -3) and 4n*n is that _______
Correct answer: Both are asymptotically Equivalent
page 23 (4n*n= 4n2)
Q15. Floor and ceiling are ______ to calculate while analyzing algorithms
Correct answer: Usually considered difficult
P-31
c. 3rd Option is missing d. 4th Option is missing
Q16. _____ of reference is an important fact of current processor technology.
Correct answer: Locality
P-8
Q17. In max-heap, largest element is stored at root node. Where is the smallest element stored?
Correct answer: Leaf Node
Related CS502 files
All CS502 files →- CS502 Official Handouts Official handout PDF 1.3 MB Free
- CS502 Final Term Subjective by Waqar Siddhu Final term PDF 4.6 MB
- CS502 MCQs and Important Topics by Junaid MCQs PDF 874 KB
- CS502 Quiz 4 July 2025 by Lucky Quiz PDF 368 KB
- CS502 Solved Quiz 3 by Introvert Quiz PDF 527 KB
- CS502 Solved Grand Quiz 2021 by Sonu Ilyas Quiz PDF 4.5 MB
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.