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

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.

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.

23AD02 - ARTIFICIAL INTELLIGENCE

   Artificial Intelligence (AI) is a branch of computer science that enables machines to perform tasks that normally require human intelligence. It involves learning, reasoning, problem-solving, and decision-making using algorithms and data.  AI is widely used in applications such as virtual assistants, healthcare, robotics, and autonomous systems.