Other

University

Image

Stack Data Structure

786
plays

10 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    In a stack, if a user tries to remove an element from empty stack it is called _________

    Underflow

    Empty collection

    Overflow

    Garbage Collection

  • 2. Multiple Choice
    30 seconds
    1 pt

    Process of inserting an element in stack is called ____________

    Create

    Push

    Evaluation

    Pop

  • 3. Multiple Choice
    1 minute
    1 pt

    Consider the usual algorithm for determining whether a sequence of parentheses is balanced.

    Suppose that you run the algorithm on a sequence that contains 2 left parentheses and 3 right parentheses (in some order).

    The maximum number of parentheses that appear on the stack AT ANY ONE TIME during the computation?

    1

    2

    3

    4 or more

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?