wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

MS 101 - Week 16 - Graph

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is the order of nodes visited for breadth-first traversal of this tree?

a)

ABCDEFG

b)

ABECFDG

c)

ABCEFDG

d)

ABECFGC

2.

What is the order of nodes visited for depth-first traversal of this tree?

a)

ABCDEFG

b)

ABECFDG

c)

ABCEFDG

d)

ABECFGC

3.
A tree is composed of ____ connected by edges or lines.
a)
Fruit 
b)
Leaf Node
c)
Root Node
d)
Nodes
4.

What is the value of the ROOT node in this Tree?

a)

35

b)

24

c)

42

d)

20

5.

Root

a)

data structure similar to a graph, with no loops.

b)

an object in a graph also known as a vertex

c)

a join of relationship between nodes - also know as an arc

d)

the starting node in a rooted tree structure from which all other nodes branch off./

6.

Tree

a)

data structure similar to a graph, with no loops.

b)

an object in a graph also known as a vertex

c)

a join of relationship between nodes - also know as an arc

d)

the starting node in a rooted tree structure from which all other nodes branch off./

7.

Binary TREE

a)

data structure similar to a graph, with no loops.

b)

an object in a graph also known as a vertex

c)

a join of relationship between nodes - also know as an arc

d)

a tree where each node can only have 2 child nodes attached to it

8.

How many leaf are there in the tree?

a)

1

b)

3

c)

4

d)

7

9.
A Balanced Tree has equal number of items on each subtree.
a)
True
b)
False
10.

Which of the following sequences denotes the post order traversal sequence of the tree?

a)

f e g c d b a

b)

g c b d a f e

c)

g c d b f e a

d)

f e d g c b a

11.

Which of the following statement about binary tree 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

12.

How many leaf nodes are there?

a)

4

b)

5

c)

6

d)

7

13.

Which of the following is TRUE about this tree?

a)

This tree is a binary tree only

b)

This tree is a binary search tree

c)

This is a non-binary tree

14.

A  graph is a data structure that consists of the following two components: 

a)

Nodes

and ordered pair of the form

b)

Graph and Forms

c)

Vertices and Lines

d)

Pair and Fix

15.

Graphs are used to represent many real-life applications

a)

True

b)

False

16.

Graph is a data structure which is used extensively in our real-life.

Each user is represented as a node and all their activities, suggestion and friend list are represented as an edge between the nodes.

a)

Google Maps

b)

Social Network

c)

Recommendations on e-commerce websites

d)

Study molecules in chemistry and physics.

17.

Various locations are represented as vertices or nodes and the roads are represented as edges and graph theory is used to find shortest path between two nodes.

a)

Google Maps

b)

Social Network

c)

Recommendations on e-commerce websites

d)

Study molecules in chemistry and physics.

18.

It is a Characteristic of graphs that illustrate

A node ‘v’ is said to be adjacent node of node ‘u’ if and only if there exists an edge between ‘u’ and ‘v’.

a)

Adjacent node

b)

Degree of a node

c)

Path

d)

Isolated Node

19.

The length ‘n’ from node ‘u’ to node ‘v’ is defined as sequence of n+1 nodes.P(u,v) =(v0,v1,v2,v3…….vn)

a)

Path

b)

Node

c)

Tree

d)

Traverse

20.

A node with degree 0 is known as ___ node.

a)

Isolated

b)

Null

c)

Void

d)

Traverse