wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PBA 2 MCQ

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is a binary tree's minimum possible height or level with 'N' nodes?

a)

Log2(N)

b)

Log2(N + 1)

c)

N

d)

N+1

2.

In a full binary tree if the number of internal nodes is I, then the number of leaves L is____.

a)

L = 2*I

b)

L = I + 1

c)

L = I – 1

d)

L = 2*I – 1

3.

In a non-empty binary tree, if 'n' is the total number of nodes and 'e' is the total number of edges, what is the relationship between 'n' and 'e'?

a)

e = n

b)

e = n + 1

c)

e = 2n

d)

e = n - 1

4.

In a binary tree, the top-most node is called ________.

a)

root

b)

leaf

c)

branch

d)

trunk

5.

A binary tree in which if all its levels, except possibly the last, have the maximum number of nodes and all the nodes at the last level appear as far left as possible is called

a)

Binary Search Tree

b)

Complete binary tree

c)

Threaded tree

d)

None of the mentioned options

6.

The height of a binary tree is the maximum number of edges in any root-to-leaf path. The maximum number of nodes in a binary tree of height h is:

a)

2h nodes

b)

2h-1 nodes

c)

2(h+1)-1 nodes

d)

2h nodes

7.

Which of the following is a condition that must be satisfied for a Binary Tree to be a Binary Search Tree?

a)

The tree has a height of log(n), where n is the number of nodes

b)

Each node in the tree has at most two children

c)

The value of each node is greater than or equal to the value of its left child and less than or equal to the value of its right child

d)

The tree has a maximum height of n, where n is the number of nodes

8.

Which data structure is used in Breadth First Search?

a)

Queue

b)

Stack

c)

Heap

d)

Linked List

9.

When the Depth First Search of a graph is unique?

a)

When the graph is a Binary Tree

b)

When the graph is a n-ary Tree

c)

When the graph is a Linked List

d)

When the graph is a ternary Tree

10.

In Depth First Search, how many times is a node visited?

a)

Once

b)

Equivalent to number of indegree of the node

c)

Twice

d)

Thrice