
Data Structures Quiz

Quiz
•
Computers
•
University
•
Medium
zin marYIU
Used 1+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a tree in data structures?
A linear data structure
A hierarchical data structure
A non-linear data structure
Both b and c
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary search tree (BST), which traversal gives elements in sorted order?
Preorder
Postorder
Inorder
Level-order
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which tree data structure is best suited for hierarchical representation?
Binary Tree
B-Tree
Heap
Trie
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary tree, how many children can a node have at most?
1
2
3
Any number
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a graph in data structures?
A tree-like structure
A collection of nodes connected by edges
A linear data structure
A stack-based structure
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a directed graph and an undirected graph?
Directed graphs have weights on edges, while undirected graphs do not
Directed graphs have edges with a direction, while undirected graphs do not
Directed graphs cannot have cycles
Undirected graphs require more memory
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A graph without cycles is called a:
Complete graph
Connected graph
Acyclic graph
Weighted graph
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Struktur Data

Quiz
•
University
25 questions
Stack and Queue

Quiz
•
University
26 questions
221 quiz questions exam 2 prep

Quiz
•
University
30 questions
Data Structures and Its Applications

Quiz
•
University
30 questions
Binary Trees and Traversals Quiz

Quiz
•
University
25 questions
Estructura de Datos

Quiz
•
University
25 questions
BASIC PROGRAMMING

Quiz
•
University
25 questions
Quiz Struktur Data

Quiz
•
9th Grade - 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