...
Question 14157 – NIC-NIELIT STA 2020
December 1, 2023
Software-Engineering
December 1, 2023
Question 14157 – NIC-NIELIT STA 2020
December 1, 2023
Software-Engineering
December 1, 2023

Question 14159 – NIC-NIELIT STA 2020

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?

Correct Answer: A

Question 84 Explanation: 
→ Here we are storing values above 50 and we are ignoring the scores which are less than 50.
→ Then using an array of 50 numbers is the best way 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

Leave a Reply

Your email address will not be published. Required fields are marked *