PYQ-based revision prompts ranked by distinct exam sessions. Ties use the order of the reviewed topics. Exam-session references are shown below the questions.
Module 1
How would you store a sparse matrix as row–column–value triples and produce its transpose?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
How would you implement push, pop, and display for an array-backed stack in C?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
How do malloc, calloc, realloc, and free differ? Demonstrate their use in C.
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
Show 2 Backup Questions
How are data structures classified? Give an example of each major category.
2 exam sessions
June-July-2025 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
How does a stack convert an infix expression with parentheses and mixed operator precedence to postfix?
2 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 1
Module 2
How do insertion, deletion, and display work in an array-backed circular queue?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
How would you implement insertion and deletion for a singly linked list in C?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 2
Dec-2024-Jan-2025 · PDF page 1
How do singly linked, doubly linked, and circular lists differ in structure and use?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
Show 2 Backup Questions
How can multiple stacks or queues share the same storage? Explain with a small example.
2 exam sessions
June-July-2024 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
How would you represent two polynomials as linked lists and add them term by term?
2 exam sessions
June-July-2024 · PDF page 1
Dec-2024-Jan-2025 · PDF page 1
Module 3
What is an inorder-threaded binary tree, and how do its threads support traversal?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 2
Dec-2024-Jan-2025 · PDF page 2
How can the same binary tree be represented using an array and using linked nodes?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 2
Dec-2024-Jan-2025 · PDF page 2
How would you insert at the front and delete at the end of a doubly linked list?
3 exam sessions
June-July-2024 · PDF page 1
June-July-2025 · PDF page 2
Dec-2024-Jan-2025 · PDF page 2
Show 2 Backup Questions
How do recursive inorder, preorder, and postorder traversals differ? Trace each on a sample tree.
2 exam sessions
June-July-2025 · PDF page 2
Dec-2024-Jan-2025 · PDF page 2
How can a sparse matrix be represented with linked nodes for its nonzero entries?
1 exam session
June-July-2025 · PDF page 2
Module 4
How do you build a binary search tree from a sequence of keys and obtain its traversals?
3 exam sessions
June-July-2024 · PDF page 2
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
How do you convert a forest to a binary tree using first-child and next-sibling links?
3 exam sessions
June-July-2024 · PDF page 2
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
How would you represent the same graph using an adjacency matrix and adjacency lists?
2 exam sessions
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
Show 2 Backup Questions
How does a selection tree find a winning element? Explain with a small example.
2 exam sessions
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
How does depth-first search visit a graph from a specified start vertex? Trace the order.
1 exam session
June-July-2025 · PDF page 3
Module 5
How do static and dynamic hashing differ when a file grows?
3 exam sessions
June-July-2024 · PDF page 2
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
How do search probabilities affect the shape and expected cost of an optimal binary search tree?
3 exam sessions
June-July-2024 · PDF page 2
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
Compare three hash functions and show how each maps example keys to table slots.
3 exam sessions
June-July-2024 · PDF page 2
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
Show 2 Backup Questions
What property defines a leftist tree, and how does it support merging two heaps?
3 exam sessions
June-July-2024 · PDF page 2
June-July-2025 · PDF page 3
Dec-2024-Jan-2025 · PDF page 2
What causes a hash collision, and how does linear probing resolve it? Trace an insertion sequence.