- Type
- Midterm past paper
- Course
- CS521 Web Systems and Technologies
- Size
- PDF 691 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 2, 3, 4 of 18. Download the file for all 18 pages.
Q1. Which data structure uses LIFO (Last In, First Out)?
Answer: b) Stack
Q2. Which of the following is a disadvantage of an array?
Answer: b) Fixed size
Q3. In a binary search tree (BST), the left child of a node has a value that is:
Answer: b) Smaller than the parent node
Q4. What is the time complexity of accessing an element in an array?
Answer: c) O(1)
Q5. Which of the following is a stable sorting algorithm?
Answer: b) Merge Sort
Q6. Which algorithm is used for finding the shortest path in a weighted graph?
Answer: c) Dijkstra’s Algorithm
Q7. Which of the following is not a characteristic of a queue?
Answer: c) Supports both insertions and deletions at any position
Q8. What is the space complexity of an algorithm that uses constant space?
Answer: a) O(1)
Q9. In a hash table, a collision occurs when:
Answer: a) Two keys map to the same index
Q10. Which data structure is used in depth-first search (DFS)?
Answer: b) Stack
Q11. Which algorithm is used for graph traversal that visits all the nodes in a graph level by level?
Answer: d) Breadth-First Search (BFS)
Q12. Which sorting algorithm has a worst-case time complexity of O(n^2)?
Answer: c) Selection Sort
Related CS521 files
All CS521 files →- CS521 Midterm Current Subjective by MS Team Midterm PDF 618 KB
- CS521 Highlighted Slides by Alishba Highlighted PDF 8.3 MB
- CS521 Quiz 1 May 2026 Quiz PDF 35 KB
- CS521 Final Term Notes Set 2 Final term PDF 774 KB
- CS521 Final Term Current Subjective by MS Team Final term PDF 768 KB
- CS521 Final Term Notes Final term PDF 2.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.