Dsa Module01 Module02 Questions Updated
Dsa Module01 Module02 Questions Updated
MODULE-01
1. Define Data structures. Explain with neat block schematic different type of data
structures with examples. What are the primitive operations that can be performed.
2. Write an algorithm to evaluate a postfix expression and apply the same for the given
postfix expression 6, 2, /, 3, -, 4, 2, *, +
3. Define stack. Give the implementation of push( ), pop( ), and display( ) function by
considering its empty and full conditions.
4. Define Spare matrix. Express following matrix in triplet form and find its transpose.
12. Explain dynamic memory allocation and its advantages compared to static memory
allocation. What are the key dynamic memory allocation functions available in C?
13. What is a structure? How is it different from arrays? Using nested structures, write a C
program to store and display Student information for the following fields Sname, Sid, DOB
(Date, Month, Year).
14. What is a sparse matrix? Express the following matrix in triplet form, find its
transpose, and write a C function to transpose the sparse matrix.
15 0 0 22
0 11 3 0
0 0 0 -6
0 0 0 0
91 0 0 0
0 0 28 0
15. Write C function to convert infix to postfix expression and solve the following postfix
expression using stack (A+ B * C) *((D + E-F)/J)
16. Write function in C to evaluate postfix expression using stack and solve the following
expression showing the stack content 1 2 3 + * 3 2 1- +*
Module-02
1. List the different types of queues. State the limitation of ordinary queue.
2. Discuss how to represent circular queue using dynamic arrays.
3. Define queue. Write a C functions for inserting and deleting an element from a
Queue.
4. Discuss the implementation of circular queue.
5. Define Circular queue. Write a C functions for inserting and deleting an element
from a Circular Queue.