Here is a listing of C interview questions on “Mathematical Functions” along with answers, explanations and/or solutions:

1. Which of the following mathematical function requires 2 parameter for successful function call?

a) fmod();

b) div();

c) atan2();

d) All of the mentioned.

View Answer

2. Which mathematical function among the following does NOT require int parameters?

a) div(x, y);

b) srand(x);

c) sqrt(x);

d) All of the mentioned.

View Answer

3. sin(x) returns

a) sine of x where x is in radians

b) sine of x where x is in degree

c) cosine of x where x is in radians

d) cosine of x where x is in degree

View Answer

4. cos(x) returns

a) sine of x where x is in radians

b) sine of x where x is in degree

c) cosine of x where x is in radians

d) cosine of x where x is in degree

View Answer

5. What is the output of this C code?

`#include <stdio.h>`

`#include <math.h>`

void main()

`{`

int k = pow(2, 3);

printf("%d\n", k);

`}`

b) 8

c) -1

d) 6

View Answer

6. What is the output of this C code?

`#include <stdio.h>`

`#include <math.h>`

void main()

`{`

int k = fabs(-87);

printf("%d\n", k);

`}`

a) -87

b) 87

c) 78

d) error

View Answer

7. What is the output of this C code?

`#include <stdio.h>`

`#include <math.h>`

void main()

`{`

int k = sqrt(-4);

printf("%d\n", k);

`}`

b) 2

c) Compile time error

d) NaN

View Answer

8. Which among the following mathematical function do not have a “double” return-type?

a) srand(x);

b) ceil(x);

c) floor(x);

d) Both (b) and (c);

View Answer

**Sanfoundry Global Education & Learning Series – C Programming Language.**

Here’s the list of Best Reference Books in C Programming Language.

To practice all features of C programming language, __here is complete set of 1000+ Multiple Choice Questions and Answers on C__.