हिंदी

Given: d = Math.min(−15.5, −19.5) What data type will you refer for the variable d? - Computer Applications

Advertisements
Advertisements

प्रश्न

Given: d = Math.min(−15.5, −19.5) 

What data type will you refer for the variable d? 

विकल्प

  • int

  • float

  • double

  • None

MCQ

उत्तर

double

Explanation:

Math.min() returns a data type based on its arguments. Since the parameters are double data type, Math. min() will return a double number. So, the data type for variable d will be double.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.07: Mathematical Library Methods - EXERCISES [पृष्ठ ८०]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.07 Mathematical Library Methods
EXERCISES | Q I. 3. | पृष्ठ ८०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×