Data structure using C

Data structure using C

University

9 Qs

quiz-placeholder

Similar activities

Trees

Trees

University

10 Qs

PDS - 04225 Balanced Trees - Chapter 7

PDS - 04225 Balanced Trees - Chapter 7

University

10 Qs

Data Structures2

Data Structures2

University

11 Qs

UNIT 3

UNIT 3

University

10 Qs

CD S6 QUIZ 29-03-22

CD S6 QUIZ 29-03-22

University

10 Qs

Binary Search Tree

Binary Search Tree

University

7 Qs

Artificial Intelligence 1

Artificial Intelligence 1

University

10 Qs

tree

tree

University

10 Qs

Data structure using C

Data structure using C

Assessment

Quiz

Computers

University

Medium

Created by

p saldhana

Used 10+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a tree in data structures?

a) A linear data structure

A hierarchical, non-linear data structure

A type of array

A type of queue

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a tree, what is the first node called?

a) Leaf

b) Parent

c) Root

d) Child

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many root nodes can a tree have?

a) One

b) Two

c) Unlimited

d) Zero

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The connection between two nodes in a tree is called?

a) Leaf

b) Edge

c) Parent

d) Sibling

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A node with no child is known as?


a) Root node

b) Parent node

c) Leaf node

d) Internal node

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is a Binary Search Tree (BST)?

a) A tree where left children are always greater than the root

b) A tree where right children are always smaller than the root

c) A tree where left children are smaller and right children are greater than the root

d) A tree with only one child per node

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which traversal method visits the root node first?

a) Inorder

b) Postorder

c) Preorder

d) Level order

8.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a forest in a tree structure?

a) A single tree

b) A set of disjoint trees

c) A type of leaf node

d) A connected graph

9.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The total number of edges in the longest path from a node to a leaf is called?

a) Depth

b) Height

c) Degree

d) Level