DSC Cie-2
DSC Cie-2
Partk
Total 5 Marks (No Choice)
Q. No. Question Marks CO Level
1a List any 5 real time applications of Stack data structure. Can a compiler 5M 2
validate parenthesis matching of an expression in a program using Stack?|
| Justify your answer.
B
Total 15 Marks (No Choice)
Q. No. Question Marks co Level
2a Fibonacci analysis can be applied on stock market to analyze the 5M 2 2
movement of prices. Write a simple recursive program to show Fibonacci
series generation and explain how to find n" Fibonacci number.
3a Data search applications require the control movement in both the 10M 2 3
directions to enhance the response time. Circular Double Linked List
(CDLL) is preferred for such applications. Write program modules to
depict the working of thefollowing CDLL operations:
Page 1 of 2
U.S.N.
i) Insert Front
ii) Delete Front
i) Display
OR
3b t is easy for a computer to solve mathematical expressions which are in 10M
10M 2 3
postfix forms rather than in infix representations. Write a
programmingB
sequence to convert an infix expression to its postfix form using the
concept of Stack. Show the stack trace conversion steps for the infix
expression: (a+b)*c
4a A mathematical application for computing factorial of a given number 10M 2 3
can be implemented using recursive function call. Construct an algorithm
for the same and determine its execution time efficiency.
OR
4b concept best suits for applications which allow memory
Circular Queue
reuse with stringent space restrictions. Write a program to model its
10M 2 3