Data structure using C

Data structure using C

University

9 Qs

quiz-placeholder

Similar activities

Trees

Trees

University

10 Qs

Quiz despre B Tree

Quiz despre B Tree

University

10 Qs

PDS - 04225 Lists, Stacks and Queues - Chapter 5

PDS - 04225 Lists, Stacks and Queues - Chapter 5

University

10 Qs

Hari 3 - Kuis Coding & Pengenalan AI (Syalwa)

Hari 3 - Kuis Coding & Pengenalan AI (Syalwa)

University

10 Qs

Intro to ML: Decision Trees

Intro to ML: Decision Trees

University

7 Qs

Arduino e API NodeJS

Arduino e API NodeJS

University

10 Qs

LAN Redundacy

LAN Redundacy

University

8 Qs

IEEE_Round2

IEEE_Round2

University

13 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