Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LH94_Quiz2

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

In a full binary tree, every node has either:

a)
  1. Zero children

b)
  1. Two children

c)
  1. Zero or two children

d)

At least one child

2.

A complete binary tree is one in which:

a)
  1. All leaves are at the same level

b)
  1. Every level, except possibly the last, is completely filled

c)
  1. It is height balanced

d)

It contains no null links

3.

Which traversal is used to get prefix expressions from an expression tree?

a)
  1. Inorder

b)
  1. Postorder

c)
  1. Preorder

d)

Level order

4.

Preorder traversal of a binary tree visits nodes in the order:

a)
  1. Root → Left → Right

b)
  1. Left → Root → Right

c)
  1. Left → Right → Root

d)

Root → Right → Left

5.

The main purpose of a threaded binary tree is to:

a)
  1. Reduce height

b)
  1. Reduce null links and allow faster traversal

c)
  1. Store duplicates

d)

Increase balance

6.

In a threaded binary tree, an inorder successor of a node is found using:

a)
  1. Right thread

b)
  1. Left thread

c)
  1. Stack

d)

Queue

7.

In a Binary Search Tree, the right child contains:

a)
  1. Values smaller than root

b)
  1. Values greater than root

c)
  1. Values equal to root

d)

Random values

8.

In an undirected graph, each edge contributes to the degree of:

a)
  1. One vertex

b)
  1. Two vertices

c)
  1. No vertex

d)

Multiple vertices

9.

The degree of a vertex in a graph is:

a)
  1. Number of loops

b)
  1. Number of edges incident on it

c)
  1. Number of vertices connected to it

d)

Both B and C

10.

Which data structure is best for representing disjoint sets when both union and find operations are frequent?

a)
  1. Array

b)
  1. Linked list

c)
  1. Tree with path compression and union by rank

d)

Stack