# Complex Arithmetic

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Complex Arithmetic”.

1. Which command is used to find the argument of a complex number?
a) atan2()
b) args()
c) abs()
d) cannot be determined

2. What is the class of the complex number?
a) double
b) symbolic
c) character
d) array

3. What is the argument of -1-i in MATLAB?
a) -3*pi/4
b) pi/4
c) 5*pi/4
d) -7*pi/4

4. What will be the output of the following code?

`atan2(-1,1)`

a) Error
b) -pi/4
c) -.7854
d) 0

5. The modulus of z, z conjugate and -z are not equal in MATLAB.
a) True
b) False

6. What will be the output of the following code?

`z=2+3i/(i99)`

a) z conjugate
b) -z
c) -3+(2*i)
d) -1

7. What is the output of the following code?

`t=-i:.01*i:i; p=exp(2*t);plot(t,p)`

a) a sinusoidal signal
b) an exponential signal
c) a discrete sinusoidal
d) no plot

8. What is the command used to check the real part of a complex number in MATLAB?
a) abs()
b) realc()
c) real()
d) cannot be checked

9. Which of the following command can be is used for complex arithmetic?
a) abs()
b) atan()
c) realc()
d) imagc()

10. What will be the output of the following code?

`abs(i)`

a) 1
b) -1
c) Error
d) i