C++ Programming and Technical

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

Read Solution (Total 1)

C++ Other Question

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
Consider the declarations in question 19. Suppose
there are two functions: f has an argument
of type A and g has an argument of type B.
Which statement is correct? ๔€€
a) Both f(b) and g(b) are legal function calls.
b) f(b) is legal, but g(b) is not legal.
c) f(b) is not legal, but g(b) is legal.
d) Neither f(b) nor g(b) is a legal