Practice Library

All MCQs

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

A programmer needs cycle detection, topological reasoning, and connectivity, and the chosen structure has the property that it typically uses recursion or a stack. Which choice fits best?

Choose an option to check your answer.

Which statement about Depth-First Search is correct?

Choose an option to check your answer.

What is a common use of Depth-First Search?

Choose an option to check your answer.

A programmer needs shortest paths in unweighted graphs, and the chosen structure has the property that it typically uses a queue. Which choice fits best?

Choose an option to check your answer.

Which statement about Breadth-First Search is correct?

Choose an option to check your answer.

What is a common use of Breadth-First Search?

Choose an option to check your answer.

A programmer needs sparse graphs, and the chosen structure has the property that its space usage is proportional to vertices plus edges. Which choice fits best?

Choose an option to check your answer.

Which statement about Adjacency List is correct?

Choose an option to check your answer.

What is a common use of Adjacency List?

Choose an option to check your answer.