Cplusplus Programming Complex Library 1 Online Exam Quiz
Cplusplus Programming Complex Library 1 GK Quiz. Question and Answers related to Cplusplus Programming Complex Library 1. MCQ (Multiple Choice Questions with answers about Cplusplus Programming Complex Library 1
Which header file is required to use complex class in your program?
Options
A : <complex>
B : <math>
C : <complex_math>
D : <algorithm>
Which function is used to get the argument of a complex number?
Options
A : abs()
B : norm()
C : arg()
D : argu()
Which of the following is the correct syntax of declaring a complex number?
Options
A : complex variable_name<type>;
B : complex<type> variable_name;
C : Complex<type> variable_name;
D : Complex variable_name<type>;
Which function is used to get the real part of the complex number?
Options
A : img_p()
B : imag_p()
C : real()
D : real_p()
Which function is used to get the imaginary part of the complex number?
Options
A : real()
B : imag()
C : imag_p()
D : real_p()
Which function is used to get the absolute of a complex number?
Options
A : ret()
B : norm()
C : mod()
D : abs()
What is the use of polar function?
Options
A : Used to construct a complex number from the real and imaginary part
B : Used to construct a complex number from magnitude and phase angle
C : Used to construct a complex number from the magnitude and real part
D : Used to construct a complex number from argument and phase angle
Chemical Engineering Basics - Part 1 more Online Exam Quiz
Cplusplus Programming Classes 2
C Plus Plus Programming Class Hierarchies
Cplusplus Programming Class Relationships
Cplusplus Programming Class Templates
Cplusplus Programming Command Line Arguments
Cplusplus Programming Complex Library 2
Cplusplus Programming Constructors Destructors 1
Cplusplus Programming Constructors Destructors 2