If Rajesh has to store the intermediate marks of his 145 friends, how many bytes does he need. Assume that the maximum number of marks in intermediate is 1000.
145
290
580
1000
Correct Answer : B
Consider a single person marks. A single person can score a maximum of 1000 marks. Hence we need to use short data type having range -32,768 to +32,767. Size of short is 2 bytes. So to store marks of one friend we need 2 bytes. To store marks of 145 friends we need 145 * 2 = 290 bytes.