Skip to content
Related Articles
Open in App
Not now

Related Articles

Data Structures | Array | Question 1

Improve Article
Save Article
Like Article
  • Difficulty Level : Basic
  • Last Updated : 11 Feb, 2013
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? (GATE CS 2005)
 

(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 http://www.geeksforgeeks.org/data-structures-and-algorithms-set-22/
 


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!