Right answer is (b) O(V^2)
The explanation is: Use of adjacency matrix provides the simple implementation of the Prim’s algorithm. In Prim’s algorithm, we need to search for the edge with a minimum for that vertex. So, worst case time complexity will be O(V^2), where V is the number of vertices.