Explore topic-wise MCQs in Data Structure Questions and Answers.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Data Structure Questions and Answers knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following correctly represents the code to print partitions of a number?

A. a)
Answer» B.
2.

Which of the following is true according to Ramanujan’s congruence?

A. No. of partitions are divisible by 5 for a number 3 more than a multiple of 5
B. No. of partitions are divisible by 5 for a number 4 more than a multiple of 5
C. No. of partitions are divisible by 5 for a number 2 more than a multiple of 5
D. No. of partitions are divisible by 5 for a number 1 more than a multiple of 5
Answer» C. No. of partitions are divisible by 5 for a number 2 more than a multiple of 5