Practice Library

All MCQs

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

A programmer needs prefix sums with updates, and the chosen structure has the property that index movement is based on the least significant set bit. Which choice fits best?

Choose an option to check your answer.

Which statement about Fenwick Tree is correct?

Choose an option to check your answer.

What is a common use of Fenwick Tree?

Choose an option to check your answer.

A programmer needs range queries with point or range updates, and the chosen structure has the property that a query can combine results from a logarithmic number of nodes. Which choice fits best?

Choose an option to check your answer.

Which statement about Segment Tree is correct?

Choose an option to check your answer.

What is a common use of Segment Tree?

Choose an option to check your answer.

Which statement about Union by Rank is correct?

Choose an option to check your answer.

What is a common use of Union by Rank?

Choose an option to check your answer.