Data Structure Adjacency Matrix Online Exam Quiz
Data Structure Adjacency Matrix GK Quiz. Question and Answers related to Data Structure Adjacency Matrix. MCQ (Multiple Choice Questions with answers about Data Structure Adjacency Matrix
What is the maximum number of possible non zero values in an adjacency matrix of a simple graph with n vertices?
Options
A : (n*(n-1))/2
B : (n*(n+1))/2
C : n*(n-1)
D : n*(n+1)
Which of these adjacency matrices represents a simple graph?
Options
A : [ [1, 0, 0], [0, 1, 0], [0, 1, 1] ]
B : [ [1, 1, 1], [1, 1, 1], [1, 1, 1] ]
C : [ [0, 0, 1], [0, 0, 0], [0, 0, 1] ]
D : [ [0, 0, 1], [1, 0, 1], [1, 0, 0] ]
What would be the number of zeros in the adjacency matrix of the given graph?
Options
A : 10
B : 6
C : 16
D : 0
Given an adjacency matrix A = [ [0, 1, 1], [1, 0, 1], [1, 1, 0] ], The total no. of ways in which every vertex can walk to itself using 2 edges is ________
Options
A : 2
B : 4
C : 6
D : 8
In the given connected graph G, what is the value of rad(G) and diam(G)?
Options
A : 2, 3
B : 3, 2
C : 2, 2
D : 3, 3
The number of elements in the adjacency matrix of a graph having 7 vertices is __________
Options
A : 7
B : 14
C : 36
D : 49
On which of the following statements does the time complexity of checking if an edge exists between two particular vertices is not, depends?
Options
A : Depends on the number of edges
B : Depends on the number of vertices
C : Is independent of both the number of edges and vertices
D : It depends on both the number of edges and vertices
Adjacency matrix of all graphs are symmetric.
Options
A : False
B : True
C :
D :
For the adjacency matrix of a directed graph the row sum is the _________ degree and the column sum is the ________ degree.
Options
A : in, out
B : out, in
C : in, total
D : total, out
The time complexity to calculate the number of edges in a graph whose information in stored in form of an adjacency matrix is ____________
Options
A : O(V)
B : O(E2)
C : O(E)
D : O(V2)
Data Structure Adjacency List more Online Exam Quiz
Dairy Engineering Testing Milk Quality
Data Structure Array Array Operations