
Data structure using C

Quiz
•
Computers
•
University
•
Medium
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
Similar Resources on Wayground
10 questions
Trees

Quiz
•
University
8 questions
FOS Ch.1 PArt 4 (QUIZ 4)

Quiz
•
University
10 questions
Quiz despre B Tree

Quiz
•
University
11 questions
Trees

Quiz
•
University
10 questions
Quiz despre B+ Tree

Quiz
•
University
14 questions
Binary Tree

Quiz
•
University
8 questions
Trees & Binary Tree

Quiz
•
University
9 questions
Data structures

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade