• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Data Structures | Array | Question 1

A program P reads in 500 integers in the range [0..100] representing the scores of 500 students. It then prints the frequency of each score above 50. What would be the best way for P to store the frequencies?
 

(A)

An array of 50 numbers
 

(B)

An array of 100 numbers
 

(C)

An array of 500 numbers
 

(D)

A dynamically allocated array of 550 numbers
 

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments