FUNDAMENTALS OF ALGORITHMS - UNIT 2 MCQS

FUNDAMENTALS OF ALGORITHMS - UNIT 2 MCQS

12th Grade

15 Qs

quiz-placeholder

Similar activities

Y13 Graph Traversal

Y13 Graph Traversal

9th Grade - University

16 Qs

AVL Trees

AVL Trees

KG - University

12 Qs

Depth and Breadth Searches

Depth and Breadth Searches

12th Grade

19 Qs

Data Structure

Data Structure

12th Grade - University

15 Qs

Graph Traversals

Graph Traversals

12th Grade

17 Qs

A Level Computing 1.4.2 Data structures: Trees #1

A Level Computing 1.4.2 Data structures: Trees #1

12th Grade

14 Qs

Binary Trees

Binary Trees

12th Grade

10 Qs

Graph Traversal Algorithms Quiz

Graph Traversal Algorithms Quiz

12th Grade - University

13 Qs

FUNDAMENTALS OF ALGORITHMS - UNIT 2 MCQS

FUNDAMENTALS OF ALGORITHMS - UNIT 2 MCQS

Assessment

Quiz

Computers

12th Grade

Medium

Created by

MS.SHYAMALADEVI C

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a binary tree and how is it structured?

A binary tree is a hierarchical data structure where each node has at most two children.

A binary tree is a flat data structure with no hierarchical relationships.

A binary tree can have any number of children for each node.

A binary tree is a linear data structure with nodes connected in a single line.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between a binary tree and a threaded binary tree.

A binary tree is used for sorting data, whereas a threaded binary tree is used for searching data.

A binary tree has nodes with at most two children, while a threaded binary tree uses null pointers to link to in-order predecessors and successors.

A binary tree stores data in a linear fashion, while a threaded binary tree stores data in a circular manner.

A binary tree can have any number of children, while a threaded binary tree has a fixed number of children.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different types of tree traversal methods?

Depth-First (Pre-order, In-order, Post-order) and Breadth-First

Sequential and Recursive Traversal

Level-Order and Random-Order

Circular and Linear Traversal

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Describe the in-order traversal of a binary tree.

The in-order traversal visits nodes in random order.

In-order traversal only visits leaf nodes of the tree.

The in-order traversal of a binary tree results in visiting nodes in non-decreasing order.

The in-order traversal of a binary tree results in a descending order.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you represent a binary tree in an array?

Use an array where the root is at index 0, left child at 2i + 1, and right child at 2i + 2.

Use an array where the root is at index 1, left child at 2i, and right child at 2i + 1.

Represent the binary tree using a matrix format with rows for each level.

Store the binary tree as a linked list instead of an array.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a graph and how can it be represented?

A graph is a collection of vertices connected by edges, and it can be represented using adjacency lists, adjacency matrices, or edge lists.

A graph is a type of chart used for data visualization.

A graph consists of only edges without any vertices.

A graph can only be represented as a pie chart.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Define connected components in a graph.

A connected component is any subset of vertices in a graph.

A connected component is a single vertex with no edges.

A connected component is a set of vertices that are all isolated from each other.

A connected component in a graph is a maximal set of vertices such that there is a path between any two vertices in the set.

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?