Vidyalelo
Data Structure · all questions

Graphs
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

153

Questions

6/8

Page

Pick an option on a question to see the right answer and solution.

If a simple graph G, contains n vertices and m edges, the number of edges in the Graph G'(Complement of G) is . . . . . . . .

Select an option to see the answer and solution.

How many nodes are required to create a Binary Decision Tree having 4 variables?

Select an option to see the answer and solution.

For some sparse graph an adjacency list is more space efficient against an adjacency matrix.

Select an option to see the answer and solution.

The And Inverter Graph representation of a Boolean function is more efficient than the Binary Decision Diagram.

Select an option to see the answer and solution.

To create an adjacency list C++'s map container can be used.

Select an option to see the answer and solution.

Which of the following statements for a simple graph is correct?

Select an option to see the answer and solution.

What is the maximum possible number of edges in a directed graph with no self loops having 8 vertices?

Select an option to see the answer and solution.

For the given graph(G), which of the following statements is true?
Graphs mcq question image

Select an option to see the answer and solution.

Given the following adjacency matrix of a graph(G) determine the number of components in the G.
[0 1 1 0 0 0], 
[1 0 1 0 0 0],
[1 1 0 0 0 0],
[0 0 0 0 1 0],
[0 0 0 1 0 0],
[0 0 0 0 0 0].

Select an option to see the answer and solution.

A graph having an edge from each vertex to every other vertex is called a . . . . . . . .

Select an option to see the answer and solution.

Two or more And Inverter Graphs can represent same function.

Select an option to see the answer and solution.

And Inverter Graph is a type of . . . . . . . .

Select an option to see the answer and solution.

What sequence would the BFS traversal of the given graph yield?
Graphs mcq question image

Select an option to see the answer and solution.

What would the time complexity to check if an undirected graph with V vertices and E edges is Bipartite or not given its adjacency matrix?

Select an option to see the answer and solution.

If A[x+3][y+5] represents an adjacency matrix, which of these could be the value of x and y.

Select an option to see the answer and solution.

In a Binary Decision Diagram, how many types of terminal exists?

Select an option to see the answer and solution.

Every Binary Decision Diagram is also a Propositional Directed Acyclic Graph.

Select an option to see the answer and solution.

In the following DAG find out the number of required Stacks in order to represent it in a Graph Structured Stack.
Graphs mcq question image

Select an option to see the answer and solution.

Complete the given snippet of code for the adjacency list representation of a weighted directed graph.
class neighbor
{
	int vertex, weight;
	____ next;
}
 
class vertex
{
	string name;
	_____ adjlist;
}
 
vertex adjlists[101];

Select an option to see the answer and solution.

In a simple graph, the number of edges is equal to twice the sum of the degrees of the vertices.

Select an option to see the answer and solution.