I did never thought of the question in this way.

Thanks BTW!!!

Thanks BTW!!!

Dark Mode

3 votes

In a class examination marks was out of 100 and there were only 1 or 2 mark questions with total 70 questions and pass mark being 36. In order to find the most repeating total mark among passed students, the appropriate data structure would be

- An array of 100 numbers
- An array of 70 numbers
- An array of 65 numbers
- A dynamically allocated array of 100 numbers

15 votes

Best answer

0 votes

we need to store frequencies of students who passed that means marks >=36

which are 36,37,38 ,...100 it is 65 in total

we can have an array of 65 int having number of students who get marks >=36 in order like in first box number of student got 36 marks and goes on last box have number of student having 100 marks.

which are 36,37,38 ,...100 it is 65 in total

we can have an array of 65 int having number of students who get marks >=36 in order like in first box number of student got 36 marks and goes on last box have number of student having 100 marks.