
Data Structures Quiz

Quiz
•
Computers
•
University
•
Medium
zin marYIU
Used 2+ 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
Estructura de Datos

Quiz
•
University
34 questions
Data structures: Chapter 2| 1

Quiz
•
University
25 questions
Aptitude Competition(SY)

Quiz
•
University
25 questions
Quiz 4

Quiz
•
University
26 questions
Graph Data Structure - 01

Quiz
•
University
27 questions
Data Structures Midterm Exam WRI

Quiz
•
University
30 questions
Binary Trees and Traversals Quiz

Quiz
•
University
25 questions
Data Strucuture & Python

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade