Log In Register

Units


Mathematical Functions - Questions and Answers

 

Practice these Mathematical Functions under C Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Mathematical Functions for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Mathematical Functions of C Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge C Programming specifically  Mathematical Functions.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Mathematical Functions under C Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of   Mathematical Functions topic of C Programming:

 

1.

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

Answer: Option A

Explanation:

2.

In linux, apart from including math header file, the program is successfully executed by which of the following?

Answer: Option B

Explanation:

3.

What type of inputs are accepted by mathematical functions?

Answer: Option A

Explanation:

4.

function fabs defined math.h header file takes argument of type integer.

Answer: Option C

Explanation:

5.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     #include <math.h>
  3.     int main()
  4.     {
  5.         unsigned int i = -1;
  6.         printf("%f\n", fabs(i));
  7.         return 0;
  8.     }

Answer: Option A

Explanation:

6.

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

Answer: Option D

Explanation:

7.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     #include <math.h>
  3.     void main()
  4.     {
  5.         int k = sqrt(-4);
  6.         printf("%d\n", k);
  7.     }

Answer: Option A

Explanation:

8.

sin(x) returns

Answer: Option D

Explanation:

9.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     #include <math.h>
  3.     int main()
  4.     {
  5.         int i = 90;
  6.         printf("%f\n", sin(i));
  7.         return 0;
  8.     }

Answer: Option D

Explanation:

10.

cos(x) returns

Answer: Option B

Explanation:

11.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     #include <math.h>
  3.     void main()
  4.     {
  5.         int k = pow(2, 3);
  6.         printf("%d\n", k);
  7.     }

Answer: Option C

Explanation:

12.

What is the output of this C code?

  1.     #include <stdio.h>
  2.     #include <math.h>
  3.     void main()
  4.     {
  5.         int k = fabs(-87);
  6.         printf("%d\n", k);
  7.     }

Answer: Option C

Explanation:

13.

Which of the following is not a valid mathematical function?

Answer: Option A

Explanation:

14.

log(x) function defined in math.h header file is

Answer: Option C

Explanation:

15.

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

Answer: Option D

Explanation: