Practice high-yield Computer Science & IT MCQs on Graphs — Part 2 with worked academic solutions for PPSC, FPSC, CSS, PMS, NTS.
Questions
40
Difficulty Level
Exam-Level
Target Exams
PPSC, FPSC, CSS...
Estimated Time
48 mins
Exam-Level PPSC FPSC CSS PMS NTS
Verified for Commission Syllabus • Oct 14, 2026
40
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress|0/40 answered
✓0 correct
✗0 wrong
0% score
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which graph traversal method can be used to check if a graph is bipartite?
Correct Answer: Option D — Breadth-First Search (BFS)
Detailed Academic Explanation:
Breadth-First Search (BFS) is the correct answer to “Which graph traversal method can be used to check if a graph is bipartite”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 2 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the primary use of a priority queue in graph algorithms?
Correct Answer: Option C — To efficiently manage and retrieve the minimum or maximum element.
Detailed Academic Explanation:
To efficiently manage and retrieve the minimum or maximum element. is the correct answer to “What is the primary use of a priority queue in graph algorithms”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 3 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In the context of graph algorithms, what is a "cut"?
Correct Answer: Option B — A partition of the vertices into two disjoint subsets.
Detailed Academic Explanation:
A partition of the vertices into two disjoint subsets. is the correct answer to “In the context of graph algorithms, what is a "cut"”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 4 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which graph representation method is more efficient for sparse graphs?
Correct Answer: Option C — Adjacency list
Detailed Academic Explanation:
Adjacency list is the correct answer to “Which graph representation method is more efficient for sparse graphs”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 5 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the characteristic of a graph if it is described as "planar"?
Correct Answer: Option D — It can be drawn on a plane without any edges crossing.
Detailed Academic Explanation:
It can be drawn on a plane without any edges crossing. is the correct answer to “What is the characteristic of a graph if it is described as "planar"”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 6 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In which of the following case does a Propositional Directed Acyclic Graph is used for?
Correct Answer: Option A — Representation of Boolean Functions
Detailed Academic Explanation:
Representation of Boolean Functions is the correct answer to “In which of the following case does a Propositional Directed Acyclic Graph is used for”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 7 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following logical operation can't be implemented by polynomial time graph manipulation algorithms using Binary Decision Diagrams?
Correct Answer: Option D — Tautology Checking
Detailed Academic Explanation:
Tautology Checking is the correct answer to “Which of the following logical operation can't be implemented by polynomial time graph manipulation algorithms using Binary Decision Diagrams”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 8 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the maximum number of edges present in a simple directed graph with 7 vertices if there exists no cycles in the graph?
Correct Answer: Option C — 6
Detailed Academic Explanation:
6 is the correct answer to “What is the maximum number of edges present in a simple directed graph with 7 vertices if there exists no cycles in the graph”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 9 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the number of words that can be formed from the given Directed Acyclic Word Graph?
Correct Answer: Option B — 4
Detailed Academic Explanation:
4 is the correct answer to “What is the number of words that can be formed from the given Directed Acyclic Word Graph”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 10 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
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 . . . . . . . .
Correct Answer: Option C — 6
Detailed Academic Explanation:
6 is the correct answer to “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 . . . . . . . .”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 11 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
All Graphs have unique representation on paper.
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “All Graphs have unique representation on paper.”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 12 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
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--; }
Correct Answer: Option B — All Empty Graphs
Detailed Academic Explanation:
All Empty Graphs is the correct answer to “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--; }”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 13 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is a HyperGraph, where V is the set of vertices, E is the set of edges?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
All of the mentioned is the correct answer to “Which of the following is a HyperGraph, where V is the set of vertices, E is the set of edges”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 14 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the number of edges present in a complete graph having n vertices?
Correct Answer: Option B — (n*(n-1))/2
Detailed Academic Explanation:
(n*(n-1))/2 is the correct answer to “What is the number of edges present in a complete graph having n vertices”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 15 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Graph Structured Stack finds its application in . . . . . . . .
Correct Answer: Option B — Tomita's Algorithm
Detailed Academic Explanation:
Tomita's Algorithm is the correct answer to “Graph Structured Stack finds its application in . . . . . . . .”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 16 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What are the dimensions of an incidence matrix?
Correct Answer: Option B — Number of edges*number of vertices
Detailed Academic Explanation:
Number of edges*number of vertices is the correct answer to “What are the dimensions of an incidence matrix”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 17 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the number of unlabeled simple directed graph that can be made with 1 or 2 vertices?
Correct Answer: Option B — 4
Detailed Academic Explanation:
4 is the correct answer to “What is the number of unlabeled simple directed graph that can be made with 1 or 2 vertices”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 18 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Incidence matrix and Adjacency matrix of a graph will always have same dimensions?
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “Incidence matrix and Adjacency matrix of a graph will always have same dimensions”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 19 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In which case adjacency list is preferred in front of an adjacency matrix?
Correct Answer: Option B — Sparse graph
Detailed Academic Explanation:
Sparse graph is the correct answer to “In which case adjacency list is preferred in front of an adjacency matrix”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 20 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In which of the following case does a Binary Decision Diagram is used for?
Correct Answer: Option A — Representation of Boolean Functions
Detailed Academic Explanation:
Representation of Boolean Functions is the correct answer to “In which of the following case does a Binary Decision Diagram is used for”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 21 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
A Graph Structured Stack is a . . . . . . . .
Correct Answer: Option C — Directed Acyclic Graph
Detailed Academic Explanation:
Directed Acyclic Graph is the correct answer to “A Graph Structured Stack is a . . . . . . . .”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 22 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In a Binary Decision Diagrams 0 values by a . . . . . . . . line and the 1 values are represented by a . . . . . . . . line.
Correct Answer: Option C — dotted, bold
Detailed Academic Explanation:
dotted, bold is the correct answer to “In a Binary Decision Diagrams 0 values by a . . . . . . . . line and the 1 values are represented by a . . . . . . . . line.”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 23 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What would be the time complexity of the BFS traversal of a graph with n vertices and n 1.25 edges?
Correct Answer: Option B — O(n1.25)
Detailed Academic Explanation:
O(n1.25) is the correct answer to “What would be the time complexity of the BFS traversal of a graph with n vertices and n 1.25 edges”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 24 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following ways can be used to represent a graph?
Correct Answer: Option C — Adjacency List, Adjacency Matrix as well as Incidence Matrix
Detailed Academic Explanation:
Adjacency List, Adjacency Matrix as well as Incidence Matrix is the correct answer to “Which of the following ways can be used to represent a graph”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 25 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
All trees with n vertices consists of n-1 edges.
Correct Answer: Option A — True
Detailed Academic Explanation:
True is the correct answer to “All trees with n vertices consists of n-1 edges.”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 26 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Binary Decision Diagram is a type of . . . . . . . .
Correct Answer: Option C — Directed Acyclic Graph
Detailed Academic Explanation:
Directed Acyclic Graph is the correct answer to “Binary Decision Diagram is a type of . . . . . . . .”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 27 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
A graph with all vertices having equal degree is known as a . . . . . . . .
Correct Answer: Option B — Regular Graph
Detailed Academic Explanation:
Regular Graph is the correct answer to “A graph with all vertices having equal degree is known as a . . . . . . . .”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 28 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In a Propositional Directed Acyclic Graph Leaves maybe labelled with a boolean variable.
Correct Answer: Option A — True
Detailed Academic Explanation:
True is the correct answer to “In a Propositional Directed Acyclic Graph Leaves maybe labelled with a boolean variable.”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 29 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
The time complexity to calculate the number of edges in a graph whose information in stored in form of an adjacency matrix is . . . . . . . .
Correct Answer: Option D — O(V2)
Detailed Academic Explanation:
O(V2) is the correct answer to “The time complexity to calculate the number of edges in a graph whose information in stored in form of an adjacency matrix is . . . . . . . .”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 30 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the degree sequence of the given HyperGraph, in non-increasing order. V = {v1,v2,v3,v4,v5,v6} E = {{v1,v4,v5} {v2,v3,v4,v5} {v2} {v1} {v1,v6}}
Correct Answer: Option B — 3,2,2,2,1,1
Detailed Academic Explanation:
3,2,2,2,1,1 is the correct answer to “What is the degree sequence of the given HyperGraph, in non-increasing order. V = {v1,v2,v3,v4,v5,v6} E = {{v1,v4,v5} {v2,v3,v4,v5} {v2} {v1} {v1,v6}}”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 31 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Given Adjacency matrices determine which of them are PseudoGraphs? i. {{1,0} {0,1}} ii. {{0,1}{1,0}} iii. {{0,0,1}{0,1,0}{1,0,0}}
Correct Answer: Option C — i and iii
Detailed Academic Explanation:
i and iii is the correct answer to “Given Adjacency matrices determine which of them are PseudoGraphs? i. {{1,0} {0,1}} ii. {{0,1}{1,0}} iii. {{0,0,1}{0,1,0}{1,0,0}}”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 32 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Time complexity to find if there is an edge between 2 particular vertices is . . . . . . . .
Correct Answer: Option A — O(V)
Detailed Academic Explanation:
O(V) is the correct answer to “Time complexity to find if there is an edge between 2 particular vertices is . . . . . . . .”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 33 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What is the number of vertices of degree 2 in a path graph having n vertices,here n>2.
Correct Answer: Option A — n-2
Detailed Academic Explanation:
n-2 is the correct answer to “What is the number of vertices of degree 2 in a path graph having n vertices,here n>2.”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 34 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What would be the number of zeros in the adjacency matrix of the given graph?
Correct Answer: Option A — 10
Detailed Academic Explanation:
10 is the correct answer to “What would be the number of zeros in the adjacency matrix of the given graph”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 35 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
For which of the following combinations of the degrees of vertices would the connected graph be eulerian?
Correct Answer: Option A — 1,2,3
Detailed Academic Explanation:
1,2,3 is the correct answer to “For which of the following combinations of the degrees of vertices would the connected graph be eulerian”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 36 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
What would be the DFS traversal of the given Graph?
Correct Answer: Option A — ABCED
Detailed Academic Explanation:
ABCED is the correct answer to “What would be the DFS traversal of the given Graph”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 37 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the given statement is true?
Correct Answer: Option D — All the cyclic directed graphs hace non topological sortings
Detailed Academic Explanation:
All the cyclic directed graphs hace non topological sortings is the correct answer to “Which of the given statement is true”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 38 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In which of the following does a Directed Acyclic Word Graph finds its application in?
Correct Answer: Option A — String Matching
Detailed Academic Explanation:
String Matching is the correct answer to “In which of the following does a Directed Acyclic Word Graph finds its application in”. This question is standard in competitive examination syllabi for Graphs.
True is the correct answer to “The graphs G1 and G2 with their incidences matrices given are Isomorphic. e1 e2 e3 e4 e5 e6 v1 1 0 0 0 0 0 v2 1 1 0 0 0 1 v3 0 1 1 0 1 0 v4 0 0 1 1 0 0 v5 0 0 0 1 1 1 e1 e2 e3 e4 e5 e6 v1 0 0 1 0 0 0 v2 1 0 1 0 1 0 v3 1 1 0 1 0 0 v4 0 1 0 0 0 1 v5 0 0 0 1 1 1”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
Question 40 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following symbols represent leaf nodes? i. Δ ii. ◊ iii. ∇ iv. T v. ⊥
Correct Answer: Option A — iv and v
Detailed Academic Explanation:
iv and v is the correct answer to “Which of the following symbols represent leaf nodes? i. Δ ii. ◊ iii. ∇ iv. T v. ⊥”. This question is standard in competitive examination syllabi for Graphs.
💡Key Conceptual Anchor:Graphs
✓Link copied to clipboard
Continue Your Practice
Advanced Mapreduce Concepts — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.