A function can not be overloaded only by its return type.
A function can be overloaded with a different return type if it has all the parameters same.
Inline functions involves some additional overhead in running time.
A function that calls itself for its processing is known as
a. Inline Function
b. Nested Function
c. Overloaded Function
d. Recursive Function
We declare a function with ______ if it does not have any return type
Arguments of a functions are separated with
a. comma (,)
b. semicolon (
c. colon (
d. None of these
Variables inside parenthesis of functions declarations have _____ level access.
Observe following function declaration and choose the best answer:
int divide ( int a, int b = 2 )
a. Variable b is of integer type and will always have value 2
b. Variable a and b are of int type and the initial value of both variables is 2
c. Variable b is international scope and will have value 2
d. Variable b will have value 2 if not specified when calling function
The keyword endl
a. Ends the execution of program where it is written
b. Ends the output in cout statement
c. Ends the line in program. There can be no statements after endl
d. Ends current line and starts a new line in cout statement.
Strings are character arrays. The last index of it contains the null-terminated character
1. a. True
2. b. False
3. a. True
4. d. Recursive Function
5. c. Void
6. a. Comma (,)
7. a. Local
8. d. Variable b will have value 2 if not specified when calling function
9. d. Ends current line and starts a new line in cout statement
10. c. \0
|< Prev||Next >|