Self Studies

Computer Scienc...

TIME LEFT -
  • Question 1
    5 / -1

    In stack, memory allocation and deallocation is performed in ________.

  • Question 2
    5 / -1

    Which of the following data structures is most suitable for evaluating postfix expressions? 

  • Question 3
    5 / -1

    Which of the following applications may use a stack?

    (a) Parenthesis balancing program

    (b) Process scheduling operating system

    (c) Conversion of infix arithmetic expression to postfix form

  • Question 4
    5 / -1

    What is the postfix representation of the following infix expression?

    (A + B) * C – D * E / F

  • Question 5
    5 / -1

    A is an empty stack. The following operations are done on it.

    PUSH(1)

    PUSH(2)

    POP

    PUSH(5)

    PUSH(6)

    POP

    What will the stack contain after these operations?

  • Question 6
    5 / -1

    Carefully observe the below given stack with stack pointer pointing to element 2.

    2

    4

    1

    7

    5

    9

     

    How many pop operations are needed to delete the smallest element from the stack?

  • Question 7
    5 / -1

    Which is the prefix of the below given expression:

    A – B + C / (D – E) * F

  • Question 8
    5 / -1

    Consider the following postfix expression with single digit operands:

    6 2 3 * / 4 2 * + 6 8 * -

    The top two elements of the stack after second * is evaluated, are:

  • Question 9
    5 / -1

    The following sequence of operations is performed on a stack:

    PUSH(50), PUSH(60), PUSH(70), POP, POP, PUSH(80), PUSH(90), PUSH(100), PUSH(110), POP, PUSH(120) PUSH(130), POP, POP, PUSH(140), POP

    The sequence of values popped out is:

  • Question 10
    5 / -1

    Identify the wrong output stack permutation for the Input sequence in 1, 2, 3, 4, 5 and pop can occur at any time in stack.

Submit Test
Self Studies
User
Question Analysis
  • Answered - 0

  • Unanswered - 10

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Submit Test
Self Studies Get latest Exam Updates
& Study Material Alerts!
No, Thanks
Self Studies
Click on Allow to receive notifications
Allow Notification
Self Studies
Self Studies Self Studies
To enable notifications follow this 2 steps:
  • First Click on Secure Icon Self Studies
  • Second click on the toggle icon
Allow Notification
Get latest Exam Updates & FREE Study Material Alerts!
Self Studies ×
Open Now