InterviewSolution
Saved Bookmarks
| 1. |
What is the use of the sq() function?(a) To find the square root of a number(b) To find the square of a number(c) To find the cube of a number(d) To find the cube root of a numberThe question was posed to me in unit test.This interesting question is from Mathematical Functions topic in portion Arduino Programming of Arduino |
|
Answer» CORRECT answer is (b) To find the square of a number For EXPLANATION I WOULD SAY: The sq() function is used to find the square of a number. It takes ONE argument; the number whose square is to be found out. This function can accept any number-based datatypes and gives the output in the double datatype. |
|