Exploring Trees and Graphs

Exploring Trees and Graphs

University

25 Qs

quiz-placeholder

Similar activities

Data Structures and Algorithm

Data Structures and Algorithm

University

20 Qs

DSA_Midterm Quiz no. 1

DSA_Midterm Quiz no. 1

University

25 Qs

DSA QUIZ

DSA QUIZ

University

20 Qs

Data Structures - Tree

Data Structures - Tree

University - Professional Development

20 Qs

DSA - Binary Tree 2-3

DSA - Binary Tree 2-3

University

20 Qs

INTRODUCTION TO TREE DATA STRUCTURE

INTRODUCTION TO TREE DATA STRUCTURE

University

20 Qs

DSA - QA3

DSA - QA3

University

20 Qs

Data Structures Quiz

Data Structures Quiz

University

20 Qs

Exploring Trees and Graphs

Exploring Trees and Graphs

Assessment

Quiz

Computers

University

Medium

Created by

Shakshi ranawat

Used 6+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What distinguishes a complete binary tree from a regular binary tree?

A complete binary tree is always balanced in height.

A complete binary tree is fully filled at all levels except possibly the last, while a regular binary tree can have varying structures.

A complete binary tree can have any number of children per node.

A complete binary tree has nodes only on the left side.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the concept of a binary search tree.

A binary search tree is a data structure that only allows duplicate values in the left child.

A binary search tree is a linear data structure where each node can have any number of children.

A binary search tree is a type of graph where nodes are connected in a circular manner.

A binary search tree is a hierarchical data structure where each node has at most two children, with the left child containing values less than the node and the right child containing values greater.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a heap in the context of trees?

A heap is a database management system used for storing large datasets.

A heap is a tree-based data structure that satisfies the heap property, allowing efficient access to the maximum or minimum element.

A heap is a type of graph that represents relationships between nodes.

A heap is a linear data structure that stores elements in a sorted order.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define the term 'root' in a tree structure.

The root is any node in a tree structure.

The root is the node with the highest value in a tree structure.

The root is the topmost node in a tree structure.

The root is the last node in a tree structure.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the degree of a node?

The degree of a node is the total number of nodes in the graph.

The degree of a node is the number of edges connected to it.

The degree of a node is the average distance to other nodes.

The degree of a node is its value in the graph.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Differentiate between terminal nodes and non-terminal nodes.

Both terminal and non-terminal nodes are leaf nodes.

Terminal nodes are always at the top of a tree; non-terminal nodes are at the bottom.

Terminal nodes are leaf nodes with no children; non-terminal nodes are internal nodes with children.

Terminal nodes can have children; non-terminal nodes cannot.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are siblings in a tree?

Nodes that share the same parent in a tree.

Nodes that are at the same level in a tree.

Nodes that are connected by a direct edge in a tree.

Nodes that share the same grandparent in a tree.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?