#include &lt;iostream&gt;    #include &lt;complex&gt;    using namespace std;    int main &#40;&#41;    &#123;        complex&lt;double&gt; mycomplex &#40;20.0, 2.0&#41;;        cout &lt;&lt; imag&#40;mycomplex&#41; &lt;&lt; endl;        return 0;    &#125;
A. 2
B. 20
C. 40
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;complex&gt;    using namespace std;    int main &#40;&#41;    &#123;        complex&lt;double&gt; mycomplex &#40;20.0, 2.0&#41;;        cout &lt;&lt; imag&#40;mycomplex&#41; &lt;&lt; endl;        return 0;    &#125;
A. 2 B. 20 C. 40 D. None of the mentioned
Explanation:imag part will return the imaginery part of the complex number.