logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • .What are Stacks? Give an example where they are useful.


  • Correct Answer
  • A Stack is a linear structure in which insertions and deletions are always made at one end ie the top - this is termed as last in, first out (LIFO) Stacks are useful when we need to check some syntex errors like missing parentheses 


  • Technology problems


    Search Results


    • 1. What are the advantages of using friend classes?
    • Discuss
    • 2. Explain one-definition rule (ODR).
    • Discuss
    • 3. What is mandatory for designing a new container?

    • Options
    • A. Classes
    • B. Iterators
    • C. Container
    • D. None of these
    • Discuss
    • 4. What do vectors represent?

    • Options
    • A. Static arrays
    • B. Dynamic arrays
    • C. Stack
    • D. Queue
    • Discuss
    • 5. To which type of class, We can apply RTTI?

    • Options
    • A. Encapsulation
    • B. Polymorphic
    • C. Derived
    • D. None of these
    • Discuss
    • 6. Exlpain STL.
    • Discuss
    • 7. What is a Wrapper class?
    • Discuss
    • 8. What do you mean by stack unwinding?
    • Discuss
    • 9. Difference between Stack and Queue
    • Discuss
    • 10. What is the scope resolution operator?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment