Practice Library

All MCQs

Browse exam-wise, subject-wise, and country-wise MCQs with explanations.

A programmer needs dense graphs and constant-time edge-existence tests, and the chosen structure has the property that its space usage is quadratic in the number of vertices. Which choice fits best?

Choose an option to check your answer.

Which statement about Adjacency Matrix is correct?

Choose an option to check your answer.

What is a common use of Adjacency Matrix?

Choose an option to check your answer.

A programmer needs shortest-path and network optimization problems, and the chosen structure has the property that path quality can depend on the sum of weights. Which choice fits best?

Choose an option to check your answer.

Which statement about Weighted Graph is correct?

Choose an option to check your answer.

What is a common use of Weighted Graph?

Choose an option to check your answer.

A programmer needs modeling symmetric relationships, and the chosen structure has the property that each edge connects two vertices bidirectionally. Which choice fits best?

Choose an option to check your answer.

Which statement about Undirected Graph is correct?

Choose an option to check your answer.

What is a common use of Undirected Graph?

Choose an option to check your answer.