English

What is not true for stack?

Advertisements
Advertisements

Question

What is not true for stack?

Options

  • List is used for implementing stack.

  • Dictionary can also be used to implement stack.

  • List's internal function pop and append are used to remove or add element.

  • Explicit declaration of TOP is not required in a stack.

MCQ
Advertisements

Solution

Dictionary can also be used to implement stack.

Explanation:

Stack cannot be implemented with a dictionary.

shaalaa.com
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×