GATE CS 2005 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0226

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?
  1. A
    An array of 50 numbers
  2. B
    An array of 100 numbers
  3. C
    An array of 500 numbers
  4. D
    A dynamically allocated array of 550 numbers

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1347/gate2005-5

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com