Practice Library

All MCQs

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

A programmer needs accelerating repeated disjoint-set queries, and the chosen structure has the property that it flattens the parent structure over time. Which choice fits best?

Choose an option to check your answer.

Which statement about Path Compression is correct?

Choose an option to check your answer.

What is a common use of Path Compression?

Choose an option to check your answer.

A programmer needs connectivity queries and Kruskal’s algorithm, and the chosen structure has the property that its main operations are find and union. Which choice fits best?

Choose an option to check your answer.

Which statement about Disjoint Set Union is correct?

Choose an option to check your answer.

What is a common use of Disjoint Set Union?

Choose an option to check your answer.

A programmer needs scheduling tasks with dependencies, and the chosen structure has the property that it exists only for directed acyclic graphs. Which choice fits best?

Choose an option to check your answer.

Which statement about Topological Sort is correct?

Choose an option to check your answer.

What is a common use of Topological Sort?

Choose an option to check your answer.