MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Select a real life situation implement stack
A
All of the answers
B
The cars a garage the first car in will be the last car out of the garage
C
The batteries in a flashlight
D
The person wear bangles
Explanation: 

Detailed explanation-1: -Examples of stacks in “real life": The stack of trays in a cafeteria; A stack of plates in a cupboard; A driveway that is only one car wide.

Detailed explanation-2: -Application of the Stack A Stack can be used for evaluating expressions consisting of operands and operators. Stacks can be used for Backtracking, i.e., to check parenthesis matching in an expression. It can also be used to convert one form of expression to another form. It can be used for systematic Memory Management.

Detailed explanation-3: -The common application of Stack is delimiter checking, i.e., parsing that involves analyzing a source program syntactically. It is also called parenthesis checking.

There is 1 question to complete.