CACS201 Data Structures And Algorithms

Data Structures And Algorithms old question papers

Pick a year on the left to see the full paper, exactly as it was set. 8 questions have come up in more than one paper.

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 3 · TU Board 2025

Course Title: Data Structures And Algorithms (CACS201)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to answer the question in their own words as far as possible.

Group B

Attempt any SIX question.(6 × 5 = 30)

  1. 2.

    Explain stack as ADT. Describe push and pop operation in stack.

    5
  2. 3.

    Define linear and circular queue. Write are the limitation of linear queue? How circular queue can used to overcome the limitation of linear queue.

    5
  3. 4.

    What is hashing? Explain different types of collision resolution techniques with suitable example.

    5
  4. 5.

    What is recursion? Write an algorithm to solve Tower of Hanoi problem.

    5
  5. 6.

    Differentiate between internal sorting and external sorting algorithm. Explain insertion sorting algorithm with example.

    5
  6. 7.

    How graph can be represented using adjacency matrix? Explain Depth first traversal in a graph with suitable example.

    5
  7. 8.

    A binary tree T has 9 nodes. The inorder and preorder traversals of T yield the following sequence of nodes: In-order: R Z J T K H N M P Pre-order: K Z R T J N H P M Draw the tree T. OR Write short notes on: a. Deterministic and non-deterministic algorithm b. Divide and conquer algorithm

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    Describe types of linked list. Write an algorithm to perform following operation in circular linked list: • Insert node at the beginning of circular linked list. • Insert node at the end of circular linked list. • Delete node from the beginning of circular linked list. • Delete node from the end of circular linked list.

    10
  2. 10.

    Differentiate between strict binary tree and skewed tree. Explain binary search tree and insertion and deletion operation in BST in detail. Consider following data and construct BST: 14, 11, 12, 19, 15, 22, 13, 8, 33, 7, 9, 20.

    10
  3. 11.

    What is priority queue? Explain sequential searching algorithm and binary searching algorithm with suitable illustration.

    10

— The End —