Multiple Choice
Select all that apply. Given the following code fragment, which of the things shown below happen when the statement on line 8 executes?
1 int square(int a)
2 {
3 return a * a;
4 }
5 int main()
6 {
7 int x = 0;
8 x = square(5) ;
9 cout << x << endl;
10 return 0;
11 }
A) The square function is called and the value 5 is passed as an argument.
B) The square function calculates 5*5 and stores the result, 25, as a temporary value.
C) The temporary value is copied (assigned) to the variable x.
D) The temporary value is discarded by the system.
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Q6: When you redefine the way a standard
Q7: A move operation transfers resources from a
Q8: A public data member may be declared
Q9: A(n) _ is a special function that
Q10: In C++11 an rvalue reference is a
Q12: An _ operator can work with programmer-defined
Q13: A static member variable can be used
Q14: The this pointer is a special built-in
Q15: Which type of function is not a
Q16: A(n) _ informs the compiler that a