wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Stack

Total questions: 5

Worksheet time: 2mins

Name
Class
Date
1.

Pushing an element into stack already having five elements and stack size of 5, then stack becomes

a)

Overflow

b)

Crash

c)

Underflow

d)

User flow

2.

Entries in a stack are “ordered”. What is the meaning of this statement?

a)

A collection of stacks is sortable

b)

Stack entries may be compared with the ‘<‘ operation

c)

The entries are stored in a linked list

d)

There is a Sequential entry that is one by one

3.

Here is an infix expression: 4 + 3*(6*3-12). Suppose that we are using the usual stack algorithm to convert the expression from infix to postfix notation.

The maximum number of symbols that will appear on the stack AT ONE TIME during the conversion of this expression?

a)

1

b)

2

c)

3

d)

4

4.

Which data structure can be used to test a palindrome?

a)

Tree

b)

Heap

c)

Stack

d)

Priority queue

5.

The postfix form of A*B+C/D is?

a)

*AB/CD+

b)

AB*CD/+

c)

A*BC+/D

d)

ABCD+/*