adplus-dvertising

Welcome to the Strings,Streams and Numerics in C++ MCQs Page

Dive deep into the fascinating world of Strings,Streams and Numerics in C++ with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Strings,Streams and Numerics in C++, a crucial aspect of Object Oriented Programming Using C++. In this section, you will encounter a diverse range of MCQs that cover various aspects of Strings,Streams and Numerics in C++, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Object Oriented Programming Using C++.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Strings,Streams and Numerics in C++. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Object Oriented Programming Using C++.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Strings,Streams and Numerics in C++. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Strings,Streams and Numerics in C++ MCQs | Page 14 of 21

Explore more Topics under Object Oriented Programming Using C++

Q131.
Which header file is required for manipulation of math functions in c++?
Discuss
Answer: (a).cmath
Q132.
How many macros are used by mathematical functions in the header file

a.

1

b.

2

c.

3

d.

4

Discuss
Answer: (c).3
Q133.
What is the output of this program?
    #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;
    }

a.

6

b.

7

c.

8

d.

9

Discuss
Answer: (c).8
Q134.
What is the output of this program?
    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        double param, result;
        param = 5.5;
        result = log (param);
        printf ("%lf", result );
        return 0;
    }
Discuss
Answer: (c).1.704
Q135.
What is the output of this program?
    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        printf ("%lf", pow (7.0,3));
        return 0;
    }
Discuss
Answer: (b).343.00
Q136.
What is the output of this program?
    #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;
    }
Discuss
Answer: (c).1.300 1.700
Q137.
What is the output of this program?
    #include <stdio.h>
    #include <math.h>
    int main ()
    {
        printf ("%lf", fabs (-10.6) );
        return 0;
    }
Discuss
Answer: (c).10.600000
Q138.
Which of the following mathematical function is overloaded in <complex>
Discuss
Answer: (b).tan
Q139.
How many parameters are used in frexp function?

a.

1

b.

2

c.

3

d.

4

Discuss
Answer: (b).2
Q140.
Which of the following library is used to do vector arithmetic?
Discuss
Answer: (a).Boost

Suggested Topics

Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!