1.

Which function is used to get the imaginary part of the complex number?(a) real()(b) imag()(c) imag_p()(d) real_p()

Answer» Correct choice is (b) imag()

To explain: The imag() function is provided by the complex
to access the imaginary part of a complex number object.


Discussion

No Comment Found

Related InterviewSolutions