1.

What is the use of the cos() function?(a) To find the cosine of a number(b) To find the sine of a number(c) To find the tan of a number(d) To find the inverse cosine of a numberI got this question in an internship interview.My question is based upon Mathematical Functions in chapter Arduino Programming of Arduino

Answer»

Correct answer is (a) To find the cosine of a number

The explanation is: The COS() function is used to find the cosine of a number. It takes one argument; the number whose cosine is to be found out. This number is to be ENTERED in the radian format and not the degree format. This function can accept any number-based datatypes and GIVES the output in the DOUBLE DATATYPE.



Discussion

No Comment Found

Related InterviewSolutions