A statement in the calling function to execute the code of function is called….
a) function prototype
b) function definition
c) function call
d) all of these
Which of the following is the correct format for function call?
a) add (a, b);
b) add {a, b};
c) add [a, b];
d) none of these
How many components are in function?
a) one
b) two
c) three
d) four
Explanation: function prototype/declaration, function definition, function call
The part of function that tells the compiler the name of function, the type of data return by function, number of parameters is called……
a) function prototype
b) function definition
c) function call
d) all of these
A type of function that has no body is known as……
a) function
b) virtual function
c) pure virtual function
d) none of these
Which of the following is the syntax f pure virtual function?
a) pure virtual return_type func()
b) virtual return_type func() pure;
c) virtual return_type func() = 0;
d) virtual return_type func()