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

3/8

Page

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

Which graph traversal method can be used to check if a graph is bipartite?

Select an option to see the answer and solution.

What is the primary use of a priority queue in graph algorithms?

Select an option to see the answer and solution.

In the context of graph algorithms, what is a "cut"?

Select an option to see the answer and solution.

Which graph representation method is more efficient for sparse graphs?

Select an option to see the answer and solution.

What is the characteristic of a graph if it is described as "planar"?

Select an option to see the answer and solution.

Possible number of labelled simple Directed, Pseudo and Multigarphs exist having 2 vertices?

Select an option to see the answer and solution.

In which of the following case does a Propositional Directed Acyclic Graph is used for?

Select an option to see the answer and solution.

Which of the following logical operation can't be implemented by polynomial time graph manipulation algorithms using Binary Decision Diagrams?

Select an option to see the answer and solution.

What is the maximum number of edges present in a simple directed graph with 7 vertices if there exists no cycles in the graph?

Select an option to see the answer and solution.

What is the number of words that can be formed from the given Directed Acyclic Word Graph?
Graphs mcq question image

Select an option to see the answer and solution.

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 . . . . . . . .

Select an option to see the answer and solution.

All Graphs have unique representation on paper.

Select an option to see the answer and solution.

For which type of graph, the given program won't run infinitely? The Input would be in the form of an adjacency Matrix and n is its dimension (1<n<10).
#include <bits/stdc++.h> 
using namespace std; 
int G[10][10]; 
void fun(int n); 
 
int main()
{
	int num=0; 
	int n; 
	cin>>n; 
	for(int i=0;i<n;i++) 
 		for(int j=0;j<n;j++) 
        		cin>>G[i][j]; 
    	fun(n); 
	return 0; 
}	 
 
void fun(int n)
{ 
	for(int i=0;i<n;i++) 
	for(int j=0;j<n;j++) 
	if(G[i][j]==1) 
	j--; 
}

Select an option to see the answer and solution.

Which of the following is a HyperGraph, where V is the set of vertices, E is the set of edges?

Select an option to see the answer and solution.

What is the number of edges present in a complete graph having n vertices?

Select an option to see the answer and solution.

Graph Structured Stack finds its application in . . . . . . . .

Select an option to see the answer and solution.

What are the dimensions of an incidence matrix?

Select an option to see the answer and solution.

What is the number of unlabeled simple directed graph that can be made with 1 or 2 vertices?

Select an option to see the answer and solution.

Which of the following statement is true.

Select an option to see the answer and solution.

Incidence matrix and Adjacency matrix of a graph will always have same dimensions?

Select an option to see the answer and solution.