ENCT 252Bachelor in Computer Engineering · Semester 41 Paper Available

Data Structure and Algorithm

Past examination question papers and complete curriculum syllabus for Data Structure and Algorithm (ENCT 252), Bachelor in Computer Engineering Semester 4 under Institute of Engineering (IOE), Tribhuvan University.

Past Question Papers (PDF)

Switch tabs to view different exam papers

4th-sem_Data Structure and Algorithm.pdf

IOE Past Examination Paper

Download PDF
Served via fast CDN. Read in full view or download for offline study.

Document information: This past examination paper is identified as an IOE/TU academic document and was cataloged from a public Google Drive archive. This independent website did not create the examination paper and is not affiliated with TU or IOE.

Rights holders can request correction or removal by emailing subeshgaming@gmail.com with this page URL and supporting details.

Most Frequently Asked Questions

Top recurring IOE board exam questions for Data Structure and Algorithm with verified mark schemes, formula notation, and recurrence frequency.

Showing 30 of 30 top repeated questions

Introduction

3 Questions
#1Repeated 6 Times[4 Marks]Introduction
What do you mean by asymptotic notations? Define Big-O, Omega (Ω), and Theta (Θ) notations with their mathematical definitions and graphical diagrams. Explain how time and space complexity of an algorithm are analyzed.
Appeared in:2082 Kartik2080 Chaitra2078 Chaitra2077 Chaitra2076 Baisakh2076 Bhadra
#2Repeated 5 Times[4 Marks]Introduction
Define data structure and Abstract Data Type (ADT). Briefly explain why Stack, Queue, and List are called Abstract Data Types with suitable examples demonstrating abstraction and encapsulation.
Appeared in:2082 Kartik2080 Chaitra2078 Chaitra2077 Chaitra2076 Baisakh
#3Repeated 2 Times[6 Marks]Introduction
Define Abstract Data Type (ADT). Explain asymptotic notations (Big-O, Big-Omega $\Omega$, Big-Theta $\Theta$) used in algorithm analysis with mathematical definitions and graphical plots.
Appeared in:2082 Kartik2081 Chaitra

Stack and Recursion

2 Questions
#1Repeated 6 Times[8 Marks]Stack and Recursion
Explain how recursion uses the stack data structure with an illustrative call stack diagram. Write an algorithm to solve the Tower of Hanoi (TOH) problem for n disks and draw the recursion tree for 3 disks.
Appeared in:2082 Kartik2080 Chaitra2078 Chaitra2077 Chaitra2076 Baisakh2076 Bhadra
#2Repeated 2 Times[8 Marks]Stack and Recursion
Explain the principle of Divide and Conquer. Write a recursive function to solve the Tower of Hanoi problem for $N$ disks and analyze its time complexity.
Appeared in:2082 Kartik2081 Chaitra

Linked List

8 Questions
#1Asked in 7 Exam Sessions[8 Marks]Linked List
Define stack. Write an algorithm for converting an infix expression to a postfix expression. Convert the given infix expression to postfix showing the status of the stack after every step: A * (B + C) - (B ^ D) * A + E / F or (A * B * (((C ^ X + D ^ Y) + E / Z) * F)).
Appeared in:2082 Kartik2080 Chaitra2079 Chaitra2078 Chaitra2077 Chaitra2076 Baisakh2076 Bhadra
#2Repeated 5 Times[6 Marks]Linked List
Differentiate between linear queue and circular queue with suitable diagrams. Write down conditions for queue full and queue empty in a circular queue. Write algorithms for enqueue and dequeue operations in a circular queue.
Appeared in:2082 Kartik2079 Chaitra2077 Chaitra2076 Baisakh2076 Bhadra
#3Repeated 5 Times[10 Marks]Linked List
Explain how linked lists are used to represent and add/subtract two polynomial equations. Write an algorithm and program to implement addition of two polynomials using singly linked lists.
Appeared in:2080 Chaitra2078 Chaitra2076 Bhadra2074 Ashwin2072 Kartik
#4Repeated 5 Times[8 Marks]Linked List
Explain operations of stack and queue using linked lists. Write an algorithm to insert a node at the k-th position of a doubly linked list and delete the n-th node from a singly linked list.
Appeared in:2080 Chaitra2077 Chaitra2076 Baisakh2074 Ashwin2072 Kartik
#5Repeated 4 Times[5 Marks]Linked List
Evaluate the given postfix expression using a stack showing the stack status at each operand and operator token: A B C * + D E ^ / F G * - where A = 2, B = 3, C = 10, D = 5, E = 2, F = 4, and G = 6.
Appeared in:2080 Chaitra2076 Baisakh2074 Ashwin2071 Chaitra
#6Repeated 2 Times[8 Marks]Linked List
Explain circular queue and its advantages over linear queue. Write C functions for `enqueue()` and `dequeue()` operations on a circular queue implemented using an array.
Appeared in:2082 Kartik2080 Chaitra
#7Repeated 2 Times[8 Marks]Linked List
What is a doubly linked list? Write an algorithm or C function to insert a new node at a given position and delete a node with a specific value from a doubly linked list.
Appeared in:2081 Chaitra2079 Chaitra
#8Repeated 2 Times[6 Marks]Linked List
Evaluate the postfix expression: $12, 7, 3, -, /, 2, 1, 5, +, *, +$ showing the status of the stack at each step.
Appeared in:2082 Shrawan2078 Bhadra

Tree

6 Questions
#1Asked in 7 Exam Sessions[8 Marks]Tree
Describe an AVL tree. Construct an AVL balanced tree showing balance factors and rotation operations (LL, RR, LR, RL) after each insertion for the following sequence of data: 15, 20, 24, 10, 13, 7, 30, 36, 25 (or 18, 27, 9, 11, 36, 54, 81, 63, 72).
Appeared in:2082 Kartik2080 Chaitra2079 Chaitra2078 Chaitra2077 Chaitra2076 Baisakh2076 Bhadra
#2Repeated 5 Times[6 Marks]Tree
Construct a Huffman code tree for the given set of symbols with their frequencies: A (35), B (18), C (10), D (20), E (9), F (8). Determine the binary code word for each symbol and calculate the average code length.
Appeared in:2080 Chaitra2078 Chaitra2075 Ashwin2073 Shrawan2070 Ashad
#3Repeated 5 Times[8 Marks]Tree
Explain deletion of a node having two children in a Binary Search Tree (BST) using in-order predecessor or in-order successor. Describe insertion and node-splitting operations in a B-tree with an example.
Appeared in:2079 Chaitra2077 Chaitra2076 Baisakh2076 Bhadra2072 Kartik
#4Repeated 2 Times[8 Marks]Tree
What is a Binary Search Tree (BST)? Write an algorithm to insert a node, delete a node with two children, and search for a given key in a BST.
Appeared in:2082 Kartik2080 Chaitra
#5Repeated 2 Times[8 Marks]Tree
Define B-Tree of order $M$. Construct a B-Tree of order 4 (2-3-4 tree) by inserting the keys: $5, 12, 8, 22, 15, 30, 25, 18, 40, 35$.
Appeared in:2081 Chaitra2079 Chaitra
#6Repeated 2 Times[8 Marks]Tree
Explain tree traversal algorithms (Inorder, Preorder, Postorder). Construct a binary tree whose Inorder and Preorder traversals are: Inorder: D, B, H, E, A, I, F, J, C, G; Preorder: A, B, D, E, H, C, F, I, J, G.
Appeared in:2082 Kartik2078 Bhadra

Graphs

4 Questions
#1Repeated 6 Times[8 Marks]Graphs
Define Minimum Spanning Tree (MST). Explain Kruskal's algorithm to find the MST of a weighted connected graph. Construct the MST for the given graph showing each intermediate edge selection step and calculate total cost.
Appeared in:2082 Kartik2080 Chaitra2079 Chaitra2078 Chaitra2077 Chaitra2076 Baisakh
#2Repeated 5 Times[6 Marks]Graphs
Define Breadth First Search (BFS) and Depth First Search (DFS) graph traversal algorithms. Illustrate both traversals on a given directed/undirected graph with 6 vertices showing the traversal order and tree edges.
Appeared in:2080 Chaitra2077 Chaitra2076 Bhadra2073 Shrawan2071 Chaitra
#3Repeated 2 Times[8 Marks]Graphs
Explain Breadth First Search (BFS) and Depth First Search (DFS) graph traversal algorithms. Write their algorithms and trace BFS and DFS on a given directed graph starting from vertex 1.
Appeared in:2082 Kartik2080 Chaitra
#4Repeated 2 Times[8 Marks]Graphs
Explain Dijkstra's Single Source Shortest Path algorithm. Trace Dijkstra's algorithm to find the shortest distance from source vertex A to all other vertices in a weighted graph.
Appeared in:2081 Chaitra2078 Bhadra

Sorting Algorithms

5 Questions
#1Repeated 5 Times[8 Marks]Sorting Algorithms
Create a max-heap showing each insertion step for data: 28, 24, 50, 36, 42, 58, 22, 56, 46. Use the same heap tree to sort the data in ascending order showing all intermediate heapify and deletion steps.
Appeared in:2082 Kartik2078 Chaitra2077 Chaitra2076 Bhadra2073 Chaitra
#2Repeated 5 Times[8 Marks]Sorting Algorithms
Write an algorithm for Quick Sort. Trace the quick sort algorithm step-by-step to sort the following numbers: 30, 25, 79, 19, 48, 28, 21, 44, and 110.
Appeared in:2080 Chaitra2078 Chaitra2076 Baisakh2074 Ashwin2071 Chaitra
#3Repeated 2 Times[8 Marks]Sorting Algorithms
Explain Merge Sort algorithm with a Divide and Conquer approach. Trace the algorithm for sorting the list: $38, 27, 43, 3, 9, 82, 10$ and prove its time complexity is $O(N \log N)$.
Appeared in:2082 Kartik2081 Chaitra
#4Repeated 2 Times[8 Marks]Sorting Algorithms
Explain Quick Sort algorithm. Trace Quick Sort for partitioning the array $[25, 57, 48, 37, 12, 92, 86, 33]$ with the first element as pivot. Discuss best-case, average-case, and worst-case time complexities.
Appeared in:2081 Chaitra2080 Chaitra
#5Repeated 2 Times[8 Marks]Sorting Algorithms
Explain Heap Sort algorithm. Build a Max-Heap from the array $[15, 30, 8, 45, 20, 50, 10]$ and sort it using Heap Sort.
Appeared in:2082 Kartik2079 Baishakh

Searching Algorithms

2 Questions
#1Asked in 7 Exam Sessions[8 Marks]Searching Algorithms
What is collision in hashing? What are the techniques used for collision resolution? Insert the keys: 62, 37, 36, 44, 67, 91, 82, and 31 into a hash table of size 10 using quadratic probing (or linear probing) where hash function h(key) = key % 10.
Appeared in:2082 Kartik2080 Chaitra2079 Chaitra2078 Chaitra2077 Chaitra2076 Baisakh2076 Bhadra
#2Repeated 2 Times[8 Marks]Searching Algorithms
Compare linear search and binary search. Explain open addressing (linear probing, quadratic probing, and double hashing) vs separate chaining for collision resolution in hash tables.
Appeared in:2082 Kartik2081 Chaitra

Curriculum Syllabus & Course Topics

Sourced from TU curriculum portal
Chapter-wise Units & Micro-Syllabus Topics (8 Units)
  1. 1. Introduction

    • 1.1Introduction to data structures
    • 1.1.1Need of data structures
    • 1.1.2Types of data structures and its characteristics
    • 1.2Abstract data type (ADT)
    • 1.3Basics of algorithm design techniques (Brute Force, divide and conquer, Greedy algorithms, branch and bound, backtracking, randomized, recursive, dynamic programming)
    • 1.4Algorithm analysis
    • 1.4.1Time and space complexity
    • 1.4.2Best, worst and average case analysis
    • 1.4.3Rate of growth
    • 1.4.4Asymptotic notations: Big Oh, Big Omega and Big Theta
  2. 2. Stack and Recursion

    • 2.1Definition of stack and its operations
    • 2.2Array implementation of stack ADT
    • 2.3Stack applications
    • 2.3.1Expression conversion: Infix to postfix and prefix expression
    • 2.3.2Expression evaluation: Infix and postfix expression evaluation
    • 2.4Recursion
    • 2.4.1Concept of recursion
    • 2.4.2Recursion and stack
    • 2.4.3Recursion vs iteration
    • 2.4.4Execution of recursive calls
    • 2.4.5Types of recursions
    • 2.4.6Applications of recursion: Tower of Hanoi
  3. 3. Queues

    • 3.1Definition of queue and its operations
    • 3.2Array implementation of queue ADT
    • 3.3Types of queue ADT: Linear, circular, double ended and priority queues
  4. 4. Linked List

    • 4.1Definition of list and its operations
    • 4.2Array implementation of list ADT
    • 4.3Static list and its limitations
    • 4.4Linked list: Definition and its operations
    • 4.5Types of linked list: Singly, doubly, circular
    • 4.6Application of linked list
    • 4.6.1Linked list implementation of stack and queue ADT
    • 4.6.2Solving polynomial equations using linked list
  5. 5. Tree

    • 5.1Definition and tree terminologies
    • 5.2Binary trees
    • 5.2.1Definition and types
    • 5.2.2Array and linked list representation
    • 5.2.3Traversal algorithms: Pre-order, in-order and post-order traversal
    • 5.2.4Application of full binary tree: Huffman algorithm
    • 5.3Binary search tree
    • 5.3.1Definition and operations on binary search tree: Insertion, deletion, searching and traversing
    • 5.3.2Construction of binary search tree
    • 5.4Balanced binary tree
    • 5.4.1Problem with unbalanced binary trees
    • 5.4.2Balanced binary search tree
    • 5.4.3AVL tree, definition and need of AVL tree, construction of AVL tree: Insertion, deletion on AVL tree and rotation operations
    • 5.5Introduction to red-black tree
    • 5.6B-Tree: Need, definition and construction of B-tree
  6. 6. Graphs

    • 6.1Definition, terminologies and types of graphs
    • 6.2Representation of graphs: Adjacency matrix, incidence matrix and adjacency list
    • 6.3Transitive closure and Warshall’s algorithm
    • 6.4Graph traversals: Breadth-first search, depth-first search and topological sort
    • 6.5Minimum spanning tree: Kruskal’s algorithm and prim’s algorithm
    • 6.6Shortest-paths problems: Dijkstra’s algorithm, Floyd- Warshall algorithm
  7. 7. Sorting Algorithms

    • 7.1Definition of sorting and its applications
    • 7.2Types of sorting: Internal/external sort, stable/unstable sort, in-place/ not in- place sort, adaptive/ non-adaptive sort
    • 7.3Sorting algorithms and its efficiency: Bubble, insertion, selection, shell, quick, merge, radix and heap sorting
  8. 8. Searching Algorithms

    • 8.1Definition of searching techniques and its applications
    • 8.2Different searching algorithms and its efficiency
    • 8.2.1Sequential search
    • 8.2.2Binary search
    • 8.3Hashing
    • 8.3.1Definition and its applications
    • 8.3.2Hash function
    • 8.3.3Hash table
    • 8.3.4Collision in hash table
    • 8.3.5Collision resolution techniques: Chaining method and open addressing method (Linear probing, quadratic probing and double hashing)

Examination Scheme & Marks Distribution

Evaluation Structure

  • Final Board Theory Exam: 60 Marks (Pass mark: 24)
  • Internal Assessment: 40 Marks (Pass mark: 16)
  • Practical / Lab Exam: 25 or 50 Marks (Continuous lab evaluation + viva, where applicable)

* This is the general current IOE 60/40 scheme; verify course-specific details in the syllabus above.

Exam Preparation Guidelines

  • Review the available past examination paper to understand question styling, typical derivation topics, and marks allocation.
  • Practice writing clean algorithms and code implementations, tracing dry runs with sample inputs, and explaining complexity trade-offs.
  • Structure answers with labeled diagrams, concise bullet points, and highlight final answers in numerical solutions.

Frequently Asked Questions (Data Structure and Algorithm)

Q: How can I download Data Structure and Algorithm past question papers?

You can preview or download the Data Structure and Algorithm question papers (PDF) directly using the built-in viewer on this page with zero redirects or paywalls.

Q: What is the pass mark for Data Structure and Algorithm?

The general current scheme is a 60-mark final theory exam and a 40-mark internal assessment, with pass marks of 24 and 16. Verify the course-specific syllabus above.

Q: Where can I find the complete syllabus for this subject?

The available chapter-wise syllabus and topic breakdown is indexed in the Syllabus section above, with links to the curriculum PDF source.

Authentic IOE Past Papers
Free Direct PDF Download
Curriculum Syllabus & Marking Scheme