Please, answer the three questions. Many thanks 1 Question Which of the followin
ID: 3798401 • Letter: P
Question
Please, answer the three questions. Many thanks
1 Question Which of the following methods does a stack not support? Not yet answered Points out of Select one 1.00 O a. push P Flag question O b. top O C. pop O d. pu 2 Drag and drop an appropriate item (stack, queue, or adapter) into each Question Not yet answered description below. Points out of 3.00 is a container where objects are inserted and removed according to P Flag question the last-in first-out (LIFO) principle. That is, the last object that is inserted into the container is the object that is removed first. is a data structure that supports insertion to the rear of the container and deletion from the front. is a data structure that translates one interface to another. One can take an existing data structure and make it suitable for a new use. Queue Adapter StackExplanation / Answer
1)Ans)pull
There is no method named pull() in stack.Where as the remaing methods push() ,pop(),top() are present.
_______________
2)Ans)
Stack
Queue
Adapter
Stack will follow the LIFO(Last in first out) rule
Queue will follow the FIFO(First in first out) rule
__________________
3)Ans) Matching parentheses and grouping symbols in arithmetic expressions.