Skip to main content

Graph Algorithms _Dfs_ Bfs_ Dijkstras_ Etc — Part 2 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Graph Algorithms _Dfs_ Bfs_ Dijkstras_ Etc — 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
Question 1 of 40
★ PPSC ★ FPSC

How is the time complexity of BFS affected when the graph is represented using an adjacency matrix?

Question 2 of 40
★ PPSC ★ FPSC

Which of the following properties is essential for the efficient implementation of Dijkstra's algorithm?

Question 3 of 40
★ PPSC ★ FPSC

In a graph with weights, which algorithm helps in constructing a Minimum Spanning Tree (MST)?

Question 4 of 40
★ PPSC ★ FPSC

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

Question 5 of 40
★ PPSC ★ FPSC

What is a characteristic feature of a Biconnected Graph?

Question 6 of 40
★ PPSC ★ FPSC

Prim's algorithm can be efficiently implemented using . . . . . . . . for graphs with greater density.

Question 7 of 40
★ PPSC ★ FPSC

Which of the following is the most commonly used data structure for implementing Dijkstra's Algorithm?

Question 8 of 40
★ PPSC ★ FPSC

Time Complexity of DFS is? (V - number of vertices, E - number of edges)

Question 9 of 40
★ PPSC ★ FPSC

Who proposed the modern formulation of Floyd-Warshall Algorithm as three nested loops?

Question 10 of 40
★ PPSC ★ FPSC

Which of the following branch and bound strategy leads to breadth first search?

Question 11 of 40
★ PPSC ★ FPSC

Which data structure is most suitable for implementing best first branch and bound strategy?

Question 12 of 40
★ PPSC ★ FPSC

The time taken to compute the transitive closure of a graph is Theta(n 2 ).

Question 13 of 40
★ PPSC ★ FPSC

In BFS, how many times a node is visited?

Question 14 of 40
★ PPSC ★ FPSC

Consider the graph M with 3 vertices. Its adjacency matrix is shown below. Which of the following is true? \[{\text{M}} = \left[ {\begin{array}{*{20}{c}} 0&1&1 \\ 1&0&1 \\ 1&1&0 \end{array}} \right]\]

Question 15 of 40
★ PPSC ★ FPSC

Which of the following is not a branch and bound strategy to generate branches?

Question 16 of 40
★ PPSC ★ FPSC

Complete the program. n=rows[W] D(0)=W for k=1 to n do for i=1 to n do for j=1 to n do ___________ return D(n)

Question 17 of 40
★ PPSC ★ FPSC

What approach is being followed in Floyd Warshall Algorithm?

Question 18 of 40
★ PPSC ★ FPSC

What is the basic principle behind Bellmann Ford Algorithm?

Question 19 of 40
★ PPSC ★ FPSC

Which of the following is not the algorithm to find the minimum spanning tree of the given graph?

Question 20 of 40
★ PPSC ★ FPSC

Bellmann ford algorithm provides solution for . . . . . . . . problems.

Question 21 of 40
★ PPSC ★ FPSC

Floyd Warshall's Algorithm is used for solving . . . . . . . .

Question 22 of 40
★ PPSC ★ FPSC

Which algorithm is used to find the least cost path from source node to destination node?

Question 23 of 40
★ PPSC ★ FPSC

When the Breadth First Search of a graph is unique?

Question 24 of 40
★ PPSC ★ FPSC

Which data structure is used for implementing a FIFO branch and bound strategy?

Question 25 of 40
★ PPSC ★ FPSC

Bellmann Ford algorithm was first proposed by . . . . . . . .

Question 26 of 40
★ PPSC ★ FPSC

Depth First Search is equivalent to which of the traversal in the Binary Trees?

Question 27 of 40
★ PPSC ★ FPSC

Choose the incorrect statement about DFS and BFS from the following?

Question 28 of 40
★ PPSC ★ FPSC

Which of the following can traverse the state space tree only in DFS manner?

Question 29 of 40
★ PPSC ★ FPSC

What is the running time of Bellmann Ford Algorithm?

Question 30 of 40
★ PPSC ★ FPSC

Dijkstra's Algorithm cannot be applied on . . . . . . . .

Question 31 of 40
★ PPSC ★ FPSC

Dijikstra's Algorithm is more efficient than Bellmann Ford Algorithm.

Question 32 of 40
★ PPSC ★ FPSC

The maximum number of times the decrease key operation performed in Dijkstra's algorithm will be equal to . . . . . . . .

Question 33 of 40
★ PPSC ★ FPSC

What is the formula to compute the transitive closure of a graph?

Question 34 of 40
★ PPSC ★ FPSC

A graph is said to have a negative weight cycle when?

Question 35 of 40
★ PPSC ★ FPSC

When the Depth First Search of a graph is unique?

Question 36 of 40
★ PPSC ★ FPSC

How many times the for loop in the Bellmann Ford Algorithm gets executed?

Question 37 of 40
★ PPSC ★ FPSC

How many priority queue operations are involved in Dijkstra's Algorithm?

Question 38 of 40
★ PPSC ★ FPSC

The travelling salesman problem can be solved using . . . . . . . .

Question 39 of 40
★ PPSC ★ FPSC

Bellmann Ford algorithm is used to indicate whether the graph has negative weight cycles or not.

Question 40 of 40
★ PPSC ★ FPSC

Which of the following is not an application of Breadth First Search?

✓ Link copied to clipboard
Continue Your Practice

Advanced Mapreduce Concepts — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Computer Science & IT

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.

More Modules in Computer Science & IT

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →