NEW
Font size
WorksheetsPre Quiz CIE Activity-01- Flipped Classroom
Total questions: 8
Worksheet time: 6mins
Only one end that is used in stack is called
front
rear
top
index
The result of illegal attempt to remove an element from empty stack is called
stack overflow
stack underflow
stack exception
none of the above
The result of illegal attempt to add an element from capacity complete stack is called
stack overflow
Stack underflow
Stack exception
Error in Stack
In the stack the data item placed on the stack first is
The first element to be removed
The Last element to be removed
Placed at -1 index
Given an index zero
Following stack operations are performed on an initially empty stack:
push(5); push(1); push(4); push(3); pop( ); push(2); pop( ); pop( ); push(8); push(7); pop(
);
What is the value stored in top of the stack after the above operations?
7
8
5
1
Which of the following statement about stack data structure is NOT correct?
a) Linked List are used for implementing Stacks
b) Top of the Stack always contain the new node
c) Stack deletes first element inserted at first
d) Null link is present in the last node at the bottom of the stack
Consider the linked list implementation of a stack. Which of the following node is considered as Top of the stack?
a) First node
b) Last node
c) Any Node
d)Middle Node
The following postfix expression with single digit operands is evaluated using stack:
823^/23*+51*-
The elements of the stack after the / is evaluated are
6, 1
1
2
1, 2
