MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Collection of dinner plates at a wedding reception is an example of ____
A
stack
B
queue
C
circular queue
D
none of above
Explanation: 

Detailed explanation-1: -A pile of books, a stack of dinner plates, a box of pringles potato chips can all be thought of examples of stacks. The basic operating principle is that last item you put in is first item you can take out. That is, that a stack is a Last In First Out (LIFO) structure.

Detailed explanation-2: -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: -A stack is a logical concept that consists of a set of similar elements. The term is often used in programming and memory organization in computers. Programming stacks are based on the principle of last in first out (LIFO), a commonly used type of data abstract that consists of two major operations, push and pop.

Detailed explanation-4: -If you’re planning to serve a duo entrée, Cousins notes that a 13-inch dinner plate may be required, as opposed to a 10-inch dinner plate for a smaller serving.

There is 1 question to complete.