
Chapter 15
Quiz by Sandhya
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Fill in the blanks:
(a) Any C++ program contains at least .................. function(s).
(b) After each function has done a job, control returns to ..................
(c) The declaration of a function in the calling program is known as a function ..................
(d) In a program, the function can be called in two ways .................. and ..................
(e) When the return type is not specified, the default return type of function is ..................
(f) To return the control back to the calling function, we use the keyboard ..................
(g) In an .................. function, looping is not allowed.
There is a limit on the number of functions that might be present in a C++ program.
A variable which is declared inside the function is called global variable.
When function is not returning anything, return type is void.
An inline function is preferred when its size is small.
In call by reference, any change made in the object inside the function will reflect in the value of the actual object.
A C ++ program can have more than one function with the same name.
Inline is a keyword in C++ programming language.
An inline function must be defined before it is called.
Any function in C++ can be declared as inline function.
It is necessary to specify the variable name in the function prototype