Give the output of the following expressions. i) Math.sqrt(Math.floor(16.79)); ii) Math .max(Math.ceil(3.24),4);
Answers
Answer:
i)4
ii)4
Explanation:
i)
Math.sqrt(Math.floor(16.79)); (since it is floor it will give you lower bound)
Math.sqrt(16);
=4
ii)Math.max(Math.ceil(3.24),4); (ceil will give you upper bound)
Math.max(4,4);
=4
Math.sqrt(Math.floor(16.79)) = 4 and Math .max(Math.ceil(3.24),4) = 4
i) Math.sqrt(Math.floor(16.79))
First solving function inside bracket
Math.floor(16.79)
floor function return the number to the lower greatest integers
hence Math.floor(16.79) = 16
Math.sqrt(16)
Sqrt function return the positive square root.
Math.sqrt(16) = 4
Hence Math.sqrt(Math.floor(16.79)) = 4
ii) Math .max(Math.ceil(3.24),4)
First solving function inside bracket
Math.ceil(3.24)
ceil function return the number to the higher lowest integer
hence Math.ceil(3.24) = 4
Math.max(4,4)
max function return the maximum of the given values
Here both values are same , hence will return 4
Math.max(4,4) = 4
Hence Math .max(Math.ceil(3.24),4) = 4
Learn More:
(e) What will the following functions return when executed:(i) Math ...
https://brainly.in/question/19891245
i am located near top of the excel window, below the quick access ...
brainly.in/question/11521467
Excel would evaluate the formula, = 20*10/5*8 and return this ...
brainly.in/question/14112243