MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Process of inserting an element in stack is called ____
A
Create
B
Push
C
Evaluation
D
Pop
Explanation: 

Detailed explanation-1: -PUSH: The process of adding (or inserting) a new element to the top of the stack is called PUSH operation. Pushing an element to a stack will add the new element at the top. After every push operation the top is incremented by one.

Detailed explanation-2: -In stack, the process of inserting an element is known as a push operation.

Detailed explanation-3: -Answer: Inserting of a data in a stack is called push and its counter action is called pop.

Detailed explanation-4: -A push operation decrements the pointer and copies the data to the stack; a pop operation copies data from the stack and then increments the pointer. Each procedure called in the program stores procedure return information (in yellow) and local data (in other colors) by pushing them onto the stack.

There is 1 question to complete.