Skip to main content

DS - UNIT-3 QUESTIONS

 

UNIT-3: TWO MARKS QUESTIONS

Q. no Question Description
1Develop stack and explain it with a neat diagram.
2Define Stack ADT?
3What are the properties of a stack?
4What are the conditions used to check Stack Overflow & Stack Underflow.
5List out the different applications of Stack.
6Discuss the importance of backtracking.
7Write the postfix form for the expression: A+B-C+D.
8How would you implement a stack using a singly linked list?
9Write postfix and prefix form for the expression: A+(B*C)-D*E+F.
10List the differences between stack and queue.


UNIT-3: FIVE MARKS QUESTIONS

Q. no Question Description
1Discuss different operations performed on stack with suitable examples.
2Write an algorithm for Push and Pop operations of Stack and list out its applications.
3Write a C program to implement stack operations using arrays.
4How can a stack be implemented using linked list? Demonstrate the stack operations by taking example elements.
5Interpret the procedure used to convert infix expression into postfix expression using stack. Convert (A+B)/(C-D)*(E-F).
6Define stack and give one application. Convert (G*(M-H^A)-B/C+J%F+N).
7Discuss the procedure for evaluating postfix expression. Evaluate: 24, 5, *, 7, 3, %, -, 9, -, 4, +.
8Evaluate postfix expression: 2 6 + 1 3 2 4 5-*/%+.
9Write a C program to evaluate postfix expression using stack.
10Check whether expression is balanced using stack with example.
11Explain reversing a list using stack with algorithm.
12Explain “Stack is used for reversing a list” with algorithm.
13Write a C program to check palindrome using stack.

Comments

Popular posts from this blog

23CS02 - DATA STRUCTURES (Theory)

Data Structures is a fundamental subject in computer science that deals with organizing, storing, and managing data efficiently. It helps in performing operations such as insertion, deletion, searching, and sorting in an optimized way.

23CS52 - DATA STRUCTURES (Lab)

Data Structures Lab is designed to provide hands-on experience in implementing and analyzing various data structures using the C programming language. Through a series of practical exercises, students learn to implement both linear and non-linear data structures such as arrays, linked lists, stacks, queues, trees, and hashing techniques.

Operating Systems - 20CS11 Lecture Notes

  COURSE OUTCOMES (COs): At the end of the course, students will be able to CO1 Demonstrate the underlying principles and techniques of the operating system     (Understand-l2) CO2 Interpret scheduling and communication methods of processes handled by operating systems (Understand-L2) CO3 Distinguish the process synchronization methods and deadlock handling approaches employed in operating systems (Understand-L2) CO4 Classify memory management techniques and virtual memory mechanisms     (Understand-L2) CO5 Interpret the strategies of disk scheduling algorithms and file system architecture(Understand-L2) Unit-Wise Lecture Notes: