aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Fundamental Data Structures
  • _______________ specifies the overflow condition in stack.
Multiple choice

_______________ specifies the overflow condition in stack.

  1. Top = - 1

  2. Top = N - 1

  3. Top = 0

  4. Top = 1

  5. Top = N

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

This is the correct option as array subscript starts from 0, so it can have maximum of N - 1 subscript value from N number of elements.

Keep practicing — related questions

  • If Top = MAX - 1, then what would be the state of the stack?
  • Which of the following conditions is checked into the stack before performing the 'insertion' operation?
  • Which of the following conditions must be verified before inserting a new element into the stack?
  • Which of the following conditions is verified in stack before deleting any element from it?
  • In an empty stack, perform the following operations: push (A), push (B), push (C), pop, pop, push (D), push...
  • In any type of data structure, overflow condition occurs when
  • Which of the following conditions indicates that the queue is full of items or overflow?
  • A single array A [1........MAXSIZE] is used to implement two stacks. The two stacks grow from opposite ends...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy