Correct Answer : Option (B) : Associativity and precedence of operators does not change
Explanation : Both arithmetic and non-arithmetic operators can be overloaded. The precedence and associativity of operators remains the same after and before operator overloading.
Correct Answer : Option (D) : complex
Explanation : <complex> header file is used for declaring a complex number in C++.
<complex>
#include <iostream> #include <complex> using namespace std; int main () { complex<double> mycomplex (20.0, 2.0); cout << imag(mycomplex) << endl; return 0; }
Correct Answer : Option (A) : 2
Explaination :
$ g++ comp5.cpp $ a.out 2
Correct Answer : Option (B) : result of the type conversion is a valid
Explanation : It is used to check that operators and operands are compatible after conversion.
Correct Answer : Option (C) : Memory heap
Explanation : Memory heap will store the large objects in c++ if it extends its allocated memory.
Correct Answer : Option (A) : delete the objects after processing
Explanation : When you allocate memory from the heap, you must remember to clean up objects when you’re done! Failure to do so is called a memory leak.
Correct Answer : Option (A) : vector
Explanation : Because the vector is mainly used to store large objects for the game programming and other operations etc.
Correct Answer : Option (B) : pass by reference
Explanation : Because by using pass by reference we need to pass only address location, So it can save a lot of memory.
Correct Answer : Option (C) : setrlimit()
Explanation : setrlimit() is used to unlimit the size of the stack.
setrlimit()
Correct Answer : Option (D) : right to left
Explanation : In assignment operation, the flow of execution will be from right to left only.