English

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

Advertisements
Advertisements

Question

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

What data type will you refer for the variable d? 

Options

  • int

  • float

  • double

  • None

MCQ

Solution

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
  Is there an error in this question or solution?
Chapter 1.07: Mathematical Library Methods - EXERCISES [Page 80]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.07 Mathematical Library Methods
EXERCISES | Q I. 3. | Page 80
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×