Multiple Choice
Given the following function template template <typename T>
T maximum(T value1, T value2)
{
If (value1 > value2) {
Return value1;
}
Else {
Return value2;
}
}
What would be returned by the following two function calls?
Maximum(2, 5) ;
Maximum(2.3, 5.2) ;
A) 5 and a type-mismatch error.
B) 5 and 5.2.
C) 2 and 2.3.
D) Two error messages.
Correct Answer:

Verified
Correct Answer:
Verified
Q30: A function prototype can always be omitted
Q31: The inline keyword:<br>A) Increases function-call overhead.<br>B) Can
Q32: Assuming the following pseudocode for the Fibonacci
Q33: To make numeric literals more readable, C++14
Q34: Type-safe linkage is ensured by:<br>A) Name mangling.<br>B)
Q36: If a set of functions have the
Q37: Using the following function definition, the parameter
Q38: An activation record will be popped off
Q39: A recursive function is a function that:<br>A)
Q40: Functions can:<br>A) Be used as building blocks