If the movie 'Dookudu' was watched by 4 crore people and the average ticket price was Rs. 42.50, which data type will you use to store the collections of the movie?
Correct Answer : A
The total movie collection will be
4,00,00,000 * 42.50 = 1,70,00,00,000.
An appropriate datatype among options which can store this value using optimal memory must be selected. The range of float is
3.40e+38 which is suitable for storing this value.
double can also be used but the space will be wasted.
short will not be sufficient.