Class 7 Exam  >  Class 7 Tests  >  Test: C++ Math - Class 7 MCQ

Test: C++ Math - Class 7 MCQ


Test Description

10 Questions MCQ Test - Test: C++ Math

Test: C++ Math for Class 7 2024 is part of Class 7 preparation. The Test: C++ Math questions and answers have been prepared according to the Class 7 exam syllabus.The Test: C++ Math MCQs are made for Class 7 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: C++ Math below.
Solutions of Test: C++ Math questions in English are available as part of our course for Class 7 & Test: C++ Math solutions in Hindi for Class 7 course. Download more important topics, notes, lectures and mock test series for Class 7 Exam by signing up for free. Attempt Test: C++ Math | 10 questions in 10 minutes | Mock test for Class 7 preparation | Free important questions MCQ to study for Class 7 Exam | Download free PDF with solutions
Test: C++ Math - Question 1

Which header file is required for manipulation of math functions in c++?

Detailed Solution for Test: C++ Math - Question 1

#include is a header file required for manipulation of math functions.

Test: C++ Math - Question 2

What will be the output of the following C++ code?

    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        int param, result;
        int n;
        param = 8.0;
        result = frexp (param , &n);
        printf ("%d \n", param);
        return 0;
    }

Detailed Solution for Test: C++ Math - Question 2

In this program, We are breaking out the number by using the frexp function.
Output:
$ g++ math.cpp
$ a.out
8

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: C++ Math - Question 3

What will be the output of the following C++ code?

    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        printf ("%lf", pow (7.0,3));
        return 0;
    }

Detailed Solution for Test: C++ Math - Question 3

In this program, We are calculating the 7 power of 3 by using the powfunction. As we are using 7.0, it is producing the result in 343.00
Output:
$ g++ math2.cpp
$ a.out
343.000000

Test: C++ Math - Question 4

What will be the output of the following C++ code?

    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        printf ("%lf", fabs (-10.6) );
        return 0;
    }

Detailed Solution for Test: C++ Math - Question 4

In this program, We are finding the absolute value of -10.6 by using abs function.
Output:
$ g++ math4.cpp
$ a.out
10.600000

Test: C++ Math - Question 5

How many parameters are used in frexp function?

Detailed Solution for Test: C++ Math - Question 5

There are two parameters that are used in frexp function. They are floating point value to be computed and pointer to an int object.

Test: C++ Math - Question 6

With which does the trigonometric functions work with angles in c++?

Detailed Solution for Test: C++ Math - Question 6

The trigonometric functions work with angles in radians rather than degrees.

Test: C++ Math - Question 7

How many macros are used by mathematical functions in the header file <cerrno>?

Detailed Solution for Test: C++ Math - Question 7

There are three macros used in mathematical functions. They are HUGE_VAL, EDOM, ERANGE.

Test: C++ Math - Question 8

What will be the output of the following C++ code?

    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        double param, result;
        param = 5.5;
        result = log (param);
        printf ("%lf", result );
        return 0;
    }

Detailed Solution for Test: C++ Math - Question 8

In this program, We are finding out the log value of param by using param function.
Output:
$ g++ math1.cpp
$ a.out
1.704748

Test: C++ Math - Question 9

What will be the output of the following C++ code?

    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        printf ("%lf\n", fmod (5.3, 2) );
        printf ("%lf\n", fmod (18.5, 4.2) );
        return 0;
    }

Detailed Solution for Test: C++ Math - Question 9

In this program, We are finding the remainder of the given values by using fmod function.
Output:
$ g++ math3.cpp
$ a.out
1.300000
1.700000

Test: C++ Math - Question 10

Which of the following mathematical function is overloaded in <complex> and <valarray>?

Detailed Solution for Test: C++ Math - Question 10

Because tan has more different definition in normal case and in case of complex number i.e. tan = sin/cos(normally) and tan = y/x in complex numbers.

Information about Test: C++ Math Page
In this test you can find the Exam questions for Test: C++ Math solved & explained in the simplest way possible. Besides giving Questions and answers for Test: C++ Math, EduRev gives you an ample number of Online tests for practice

Top Courses for Class 7

Download as PDF

Top Courses for Class 7