aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Data Structure (UGC/ NET)
  • If Top = MAX - 1, then what would be the state of the stack?
Multiple choice

If Top = MAX - 1, then what would be the state of the stack?

  1. Stack is empty.

  2. Stack is full.

  3. Stack is having only one element.

  4. Stack is having two elements.

  5. Stack underflow.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

If Top = MAX-1, then it means that the stack is full of elements or stack overflow.

Keep practicing — related questions

  • _______________ specifies the overflow condition in stack.
  • In an empty stack, perform the following operations: push (A), push (B), push (C), pop, pop, push (D), push...
  • How will you find out the maximum number of elements present in a stack?
  • Which of the following conditions is verified in stack before deleting any element from it?
  • If you push 1, 3, and 5 - in that order - onto a stack, which number is popped out first?
  • A single array A [1........MAXSIZE] is used to implement two stacks. The two stacks grow from opposite ends...
  • Which of the following conditions is checked into the stack before performing the 'insertion' operation?
  • If you have an empty stack that can contain letters, and you push (in order) these letters onto it, what or...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Data Structures and Algorithms (1518 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy