Complex Number Type

6

What is the output of this program?

1.
    #include 
2.
    #include 
3.
    using namespace std;
4.    
    int main()
5.
    {
6.
        complex c_double(2, 3);
7.
        complex c_int(4, 5);
8.
        c_double *= 2;
9.
        c_double = c_int;
10.
        cout << c_double;
11.
        return 0;
12.
    }
A. (2, 3)
B. (4, 5)
C. (8, 15)
D. None of the mentioned

7

What is the output of this program?

 
1.
    #include 
2.
    #include 
3.
    using namespace std;
4.
    int main() 
5.
    {
6.
       complex c1(4.0, 16.0), c2;
7.       
       c2 = pow(c1, 2.0);
8.
       cout << c2;
9.
       return 0;
10.
    }
A. (-240, 128)
B. (240, 128)
C. (240, 120)
D. None of the mentioned

8

How many real types are there in complex numbers?

A. 1
B. 2
C. 3
D. 4

9

How to declare the complex number?

A. (3,4)
B. complex(3,4)
C. (3,4i)
D. None of the mentioned

10

Which header file is used to declare the complex number?

A. complexnum
B. complex
C. complexnumber
D. None of the mentioned