What will be the output of the following code? abs(i)

Answer: a
Explanation: The abs command is used to find the magnitude of the complex argument given to it. Since magnitude is a positive value, the output will be a positive value and not -1.
Output: 1
 

Tìm kiếm

Back
Top