wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz - CSE

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

What are the operations on the stack?

a)

Push and Pop

b)

Insert and delete

c)

Insert and return

d)

Push and return

2.

Which of these is not an application of the stack?

a)

Finding inversion

b)

Recursion

c)

Undo Redo

d)

Reversing characters

3.

Which of the following is a prefix expression?

a)

ab+c+

b)

ab*c*

c)

a+b+c

d)

+a*bc

4.

Find the rank of the expression E=(A+B*C/D-E+F/G)

a)

0

b)

1

c)

-1

d)

2

5.

Which one of the following function returns the next symbol in given input string?

a)

FIRSTCHAR

b)

TOPCHAR

c)

POSTCHAR

d)

NEXTCHAR

6.

Which of the following pairs of traversals is not sufficient to build a binary tree from the given traversals?

a)

Preorder and Inorder

b)

Preorder and Postorder

c)

Inorder and Postorder

d)

All of the above

7.

How many different binary search trees can be constructed with six different nodes?

a)

64

b)

128

c)

132

d)

32

8.

The difference between the external path length and the internal path length of a binary tree with n internal nodes is

a)

1

b)

n

c)

n+1

d)

2n

9.

Which type of traversal of a binary search tree outputs the value in sorted order?

a)

Pre-order

b)

In-order

c)

Post-order

d)

None

10.

Which of the following statements about binary trees is correct?

a)

Every binary tree is either complete or full

b)

Every complete binary tree is also a full binary tree

c)

Every full binary tree is also a complete binary tree

d)

A binary tree cannot be both complete and full