The Wayback Machine - https://web.archive.org/web/20230527192432/https://www.geeksforgeeks.org/gate-gate-cs-2005-question-5/
Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE-CS-2005 | Question 5

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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: (A)

Explanation: See question 1 of https://www.geeksforgeeks.org/data-structures-and-algorithms-set-22/

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads