
FUNDAMENTALS OF ALGORITHMS - UNIT 2 MCQS

Quiz
•
Computers
•
12th Grade
•
Medium
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
Similar Resources on Wayground
20 questions
Berpikir Komputasional

Quiz
•
9th Grade - University
10 questions
Tree

Quiz
•
12th Grade
10 questions
Algorithm Complexity Quiz

Quiz
•
9th - 12th Grade
13 questions
hexadecimal binary decimal

Quiz
•
10th - 12th Grade
20 questions
iGCSE Computer Science: Problem Solving

Quiz
•
9th - 12th Grade
20 questions
Searching and Sorting

Quiz
•
10th - 12th Grade
20 questions
DATA STRUCTURES

Quiz
•
12th Grade
14 questions
A-Level Computer Science Data Structures Quiz

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade