C++ Programming and Technical General Ability General Knowledge

When should you use a const reference parameter?
a) Whenever the data type might be many bytes.
b) Whenever the data type might be many bytes,
the function changes the parameter within its
body, and you do NOT want these changes to
alter the actual argument.
c) Whenever the data type might be many bytes,
the function changes the parameter within its
body, and you DO want these changes to alter
the actual argument.
d) Whenever the data type might be many bytes,
and the function does not change the parameter
within its body

Read Solution (Total 0)

C++ Other Question

Consider the assignment statement a=b; (with
the variable declarations in the previous question).
Which answer is true?
a) The assignment statement is illegal.
b) The assignment statement activates the A
assignment operator.
c) The assignment statement activates the B
assignment operator.
d) The assignment statement activates both A and
B assignment operators
If there is one class template which has one
static member variable, that static variable will
belong to:
a) Every instance of class template will share the
same copy of static variable.
b) Every instance of class template will have its
own copy of๔€€ static variable.
c) Compilation error