
Graph and Trees Quiz

Quiz
•
Computers
•
11th Grade
•
Medium
Ralph Ellis
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a graph in mathematical terms?
A sequence of numbers
A mathematical structure modelling relationships between pairs of objects
A type of tree with vertices and edges
A collection of unrelated nodes
Answer explanation
A graph is defined as a mathematical structure that models relationships between pairs of objects, consisting of vertices (nodes) and edges (connections). This makes the second choice the correct answer.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In graph theory, what is an edge also known as?
Node
Vertex
Arc
Path
Answer explanation
In graph theory, an edge is also known as an arc. It represents a connection between two vertices (or nodes) in a graph, while the terms node and vertex refer to the points themselves, and a path is a sequence of edges.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a characteristic of a weighted graph?
It has no edges
It has values labelled on each edge
It only contains directed edges
It is always undirected
Answer explanation
A weighted graph is characterized by having values labeled on each edge, which represent weights or costs associated with traversing that edge. This distinguishes it from unweighted graphs, which do not have such values.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does an adjacency list represent in a graph?
A matrix showing all possible paths
A list of all the weights on the graph
A list of nodes with their adjacent nodes
A diagrammatic representation of the graph
Answer explanation
An adjacency list represents a graph by listing each node along with its directly connected adjacent nodes. This structure efficiently shows the relationships between nodes, making it the correct choice.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a directed graph differ from an undirected graph?
It has no vertices
The edges have weights
The edges have a one-way relationship
It doesn’t use adjacency lists
Answer explanation
A directed graph has edges that represent one-way relationships, meaning each edge has a direction from one vertex to another. In contrast, an undirected graph has edges that represent two-way relationships.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a tree in terms of data structure?
A graph with multiple cycles
A connected, undirected graph with no cycles
A directed graph with multiple roots
A weighted graph with loops
Answer explanation
A tree is defined as a connected, undirected graph with no cycles, meaning there is exactly one path between any two nodes. This distinguishes it from other graph types, making the correct choice the second option.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary tree, what is the maximum number of children each node can have?
One
Two
Three
Four
Answer explanation
In a binary tree, each node can have at most two children: a left child and a right child. Therefore, the correct answer is 'Two', as it defines the structure of a binary tree.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
157. OCR A Level (H446) SLR26 – 2.3 Dijkstra’s shortest path

Quiz
•
11th Grade
10 questions
Blockchain

Quiz
•
5th Grade - Professio...
9 questions
Minimal Spanning Trees (Kruscal's Algorithm)

Quiz
•
11th - 12th Grade
11 questions
Les xarxes d'Ordinadors (I)

Quiz
•
10th - 12th Grade
15 questions
88. OCR A Level (H446) SLR14 – 1.4 Data structures part 2 – Grap

Quiz
•
11th Grade
10 questions
BFS and DFS

Quiz
•
11th Grade
15 questions
87. OCR A Level (H446) SLR14 – 1.4 Data structures part 1 – Link

Quiz
•
11th Grade
11 questions
Understanding Linked Lists in Depth

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade