Multiple choice

When an object is passed by value, _________ constructor is invoked.

  1. default

  2. copy

  3. parameterized

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This option is correct as the copy constructor is invoked when an object is passed by value to a function. The pass by value method requires a copy of passed arguments to be created for the function to operate upon.