All Exams Test series for 1 year @ ₹349 only
Question

Match the following :
(1) PUSH(a) STACK
(2) FIFO(b) Stack insertion
(3) POP(c) QUEUE
(4) LIFO(d) Stack deletion

The correct answer is
(1)-(b), (2)-(c), (3)-(d),(4)-(a)

Matching Data Structure Concepts

This question requires matching terms related to fundamental data structures, namely STACK and QUEUE, with their corresponding operations and properties.

Understanding Stack Operations

A STACK is a linear data structure that follows a particular order in which operations are performed. The order is LIFO (Last-In, First-Out). The main operations associated with a stack are:

  • PUSH: This operation is used to add an element to the top of the stack. It signifies Stack insertion.
  • POP: This operation is used to remove an element from the top of the stack. It signifies Stack deletion.

The principle governing a stack is LIFO (Last-In, First Out), meaning the last element added is the first one to be removed.

Queue Principle: FIFO

A QUEUE is another linear data structure that follows a specific order for operations. It operates on the FIFO principle.

  • FIFO: This stands for "First-In, First-Out". In a queue, the element that was added first is the first one to be removed. This makes QUEUE the correct match for FIFO.

Final Correct Matching

Based on the definitions above, we can establish the following matches:

  • (1) PUSH corresponds to (b) Stack insertion.
  • (2) FIFO corresponds to (c) QUEUE.
  • (3) POP corresponds to (d) Stack deletion.
  • (4) LIFO corresponds to (a) STACK.

Therefore, the correct matching is (1)-(b), (2)-(c), (3)-(d), (4)-(a).

Summary Table

Item Description Match
(1) PUSH Operation to add an element to a stack (b) Stack insertion
(2) FIFO First-In, First-Out principle (c) QUEUE
(3) POP Operation to remove an element from a stack (d) Stack deletion
(4) LIFO Last-In, First-Out principle (a) STACK

Was this answer helpful?

Important Questions from Stack

  1. Single array a[0: MAXSIZE - 1] is used to implement two stacks. The two stacks grow from apposite ends of the array. Variables top 1 and top 2 (top1 < top2) point to the location of the topmost element in each of the stacks if the space is to be used efficiently, The condition for "stack full" is____________.

  2. What is the final value of the postfix expression BCDAD-+-+.
    where A=2, B=3, C=4, D=5.
  3. Consider the following operations performed on a stack of size 5 :
    Push (a); Pop() ; Push(b); Push(c); Pop();
    Push(d); Pop();Pop(); Push (e)
    Which of the following statements is correct ?
  4. Which of the following is not an inherent application of stack ?
  5. Stack is also known as

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App