Cplusplus Programming Functions Online Exam Quiz
Cplusplus Programming Functions GK Quiz. Question and Answers related to Cplusplus Programming Functions. MCQ (Multiple Choice Questions with answers about Cplusplus Programming Functions
What is an inline function?
Options
A : A function that is expanded at each call during execution
B : A function that is called during compile time
C : A function that is not checked for syntax errors
D : A function that is not checked for semantic analysis
An inline function is expanded during ______________
Options
A : compile-time
B : run-time
C : never expanded
D : end of the program
Which of the following feature is used in function overloading and function with default argument?
Options
A : Encapsulation
B : Polymorphism
C : Abstraction
D : Modularity
Which of the following is the default return value of functions in C++?
Options
A : int
B : char
C : float
D : void
What happens to a function defined inside a class without any complex operations (like looping, a large number of lines, etc)?
Options
A : It becomes a virtual function of the class
B : It becomes a default calling function of the class
C : It becomes an inline function of the class
D : The program gives an error
If an argument from the parameter list of a function is defined constant then _______________
Options
A : It can be modified inside the function
B : It cannot be modified inside the function
C : Error occurs
D : Segmentation fault
Which of the following is important in a function?
Options
A : Return type
B : Function name
C : Both return type and function name
D : The return type, function name and parameter list
From which function the execution of a C++ program starts?
Options
A : start() function
B : main() function
C : new() function
D : end() function
Where should default parameters appear in a function prototype?
Options
A : To the rightmost side of the parameter list
B : To the leftmost side of the parameter list
C : Anywhere inside the parameter list
D : Middle of the parameter list
When we define the default values for a function?
Options
A : When a function is defined
B : When a function is declared
C : When the scope of the function is over
D : When a function is called
Chemical Engineering Basics - Part 1 more Online Exam Quiz
Cplusplus Programming Exception Handling 1
Cplusplus Programming Exception Handling 2
Cplusplus Programming File Handling
Cplusplus Programming Friend Function
Cplusplus Programming Function Objects
Cplusplus Programming Function Templates 2
Cplusplus Programming Functors
Cplusplus Programming Generators