aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Data Structures
  • Which of following stack operation returns a Boolean value?
Multiple choice

Which of following stack operation returns a Boolean value?

  1. push()

  2. pop()

  3. size()

  4. isEmpty()

  5. peek()

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

This operation tests to see whether the stack is empty and it returns the value true or false.

Keep practicing — related questions

  • Which of the following is not a stack operation?
  • Which of the following operations of stack needs parameter in its method?
  • In an empty stack, perform the following operations: push (A), push (B), push (C), pop, pop, push (D), push...
  • Which of the following methods in stack class java returns the element on the top of the stack, but does no...
  • Which of the following methods of Stack class is used to search for an element in the stack?
  • Which of the following is the operation in which a new data or element is inserted into the stacks?
  • Performing POP on empty stack will result in
  • Which of the following conditions is checked into the stack before performing the 'insertion' operation?
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