1.

What is the use of the sin() function?(a) To find the sine of a number(b) To find the cosine of a number(c) To find the tan of a number(d) To find the inverse tan of a numberI have been asked this question during an interview.Question is from Mathematical Functions topic in chapter Arduino Programming of Arduino

Answer»

Correct answer is (a) To FIND the SINE of a number

To explain: The sin() function is used to find the sine of a number. It takes ONE argument; the number whose sine is to be found out. This number is to be entered in the RADIAN format and not the degree format. This function can accept the float datatype and gives the output in the double datatype.



Discussion

No Comment Found

Related InterviewSolutions