Graph Data Structure - 01

Quiz
•
Computers
•
University
•
Medium

S Sampath Kumar
Used 204+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
BFT uses which data structure?
Stack
Queue
Tree
Hash
Answer explanation
Breadth-First Search uses a queue data structure technique to store the vertices. And the queue follows the First In First Out (FIFO) principle, which means that the neighbors of the node will be displayed, beginning with the node that was put first.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following statements is true about a graph?
It is a linear data structure.
It contains a sequence of elements.
It consists of a set of vertices and edges.
It can only be traversed in a single direction.
Answer explanation
A graph is a non-linear data structure that consists of a set of vertices (nodes) and edges (connections) that connect these vertices.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a vertex in a graph?
The edge that connects two nodes.
A node or a point in the graph.
The path between two vertices.
The length of the edge.
Answer explanation
A vertex, also known as a node, is an individual element or point in a graph.
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is an edge in a graph?
The path between two vertices.
A node or a point in the graph.
The length of the vertex.
The connection between two vertices
Answer explanation
The connection between two vertices
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the maximum number of edges in a complete graph with n vertices?
n
n - 1
n(n - 1) / 2
2n
Answer explanation
In a complete graph with n vertices, each vertex is connected to every other vertex. The total number of possible edges can be calculated using the formula n(n - 1) / 2.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT a type of graph?
Directed graph
Weighted graph
Binary tree
Undirected graph
Answer explanation
A binary tree is a specialized form of a graph with specific properties, such as each node having at most two children. It is not considered a type of general graph.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the degree of a vertex in a graph?
The total number of vertices in the graph.
The total number of edges in the graph.
The number of edges incident to the vertex
The sum of the weights of all edges connected to the vertex.
Answer explanation
The degree of a vertex in a graph is the number of edges that are incident or connected to that vertex.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
CA mcq

Quiz
•
University
23 questions
Lecture-3

Quiz
•
University
23 questions
Cryptography

Quiz
•
University
25 questions
Algorithms are not magic - AQA A Level Computer Science

Quiz
•
8th Grade - University
22 questions
ABC's of Programming A

Quiz
•
University
25 questions
Concepts of Machine Learning

Quiz
•
University
25 questions
Algorithms

Quiz
•
University
22 questions
Graph, Trees and Recursion Quiz

Quiz
•
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
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University