C-Dynamic Memory Allocation and Data Structure Questions and Answers
Practice ModeShowing 10 of 104 questions
Q91
Consider the implementation of the stack using partially-filled array. What goes wrong if we try tos store the top of the stack at location [0] and the bottom of the stack at the last used position of the array?
Answer: Option C
Q92
In the linked-list version of the stack class, which operations require linear time for their worst-case behavior?
Answer: Option D
Q93
In the linked list implementation of the stack class, where does the push member function place the new entry on the linked list?
Answer: Option A
Q94
What is the value of the postfix expression 6 3 2 4 + -*:
Answer: Option A
Q95
Here is an infix expression: 4+3* (6*3-12).
suppose that we are using the usual stack algorithm to convert the expression from infix to postfix notation. What is the maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression?
Answer: Option D
Q96
Apliction of stacks is/are
Answer: Option C
Q97
What will be the equivalent prefix expressio of postfix form
4 2 $ 3 * 3 - 8 4 / 1 1 + / +
Answer: Option A
Q98
Equivalent postfix expression of : (7 -) * (9 / 2)
Answer: Option C
Q99
During the conversion of infix expression 4 $ 2 * 3 - 38 / 4 (1 + 1) to post fix, what is the maximum number of symbol (operators) in the stack content at one point of time.
Answer: Option C
Q100
give the infix implementation of post fix: a b + c *d e - -f g + $:
Answer: Option A