CPP

CPP

Standard Mathematical Functions has 9 Questions
With which does the trigonometric functions work with angles in c++?

Degrees
Radians
Both a & b
None of the mentioned
Which header file is required for manipulation of math functions in c++?

cmath
maths
math
None of the mentioned
How many macros are used by mathematical functions in the header file ?

1
2
3
4
What is the output of this program?
  1.     #include 
  2.     #include 
  3.     int main ()
  4.     {
  5.         int param, result;
  6.         int n;
  7.         param = 8.0;
  8.         result = frexp (param , &n);
  9.         printf ("%d \n", param);
  10.         return 0;
  11.     }

6
7
8
9
What is the output of this program?
  1.     #include 
  2.     #include 
  3.     int main ()
  4.     {
  5.         printf ("%lf", pow (7.0,3));
  6.         return 0;
  7.     }

343
343.00
334
None of the mentioned
What is the output of this program?
  1.     #include 
  2.     #include 
  3.     int main ()
  4.     {
  5.         printf ("%lf\n", fmod (5.3, 2) );
  6.         printf ("%lf\n", fmod (18.5, 4.2) );
  7.         return 0;
  8.     }

1.300
1.700
Both a & b
None of the mentioned
What is the output of this program?
  1.     #include 
  2.     #include 
  3.     int main ()
  4.     {
  5.         printf ("%lf", fabs (-10.6) );
  6.         return 0;
  7.     }

10
-10
10.600000
None of the mentioned
Which of the following mathematical function is overloaded in and ?

cos
tan
sin
mod
How many parameters are used in frexp function?

1
2
3
4