C/C MCQ Quiz Hub

C programming language MCQ Questions Set 5

Choose a topic to test your knowledge and improve your C/C skills

How many minimum number of functions should be present in a C++ program for its execution?





✅ Correct Answer: 2

Which of the following is the default return value of functions in C++?





✅ Correct Answer: 1

 What happens to a function defined inside a class without any complex operations (like looping, a large number of lines, etc)?





✅ Correct Answer: 3

 What is an inline function?





✅ Correct Answer: 1

When we define the default values for a function?





✅ Correct Answer: 2

Where should default parameters appear in a function prototype?





✅ Correct Answer: 1

If an argument from the parameter list of a function is defined constant then ______





✅ Correct Answer: 2

Which of the following feature is used in function overloading and function with default argument?





✅ Correct Answer: 2

From which function the execution of a C++ program starts?





✅ Correct Answer: 2

Which of the following is important in a function?





✅ Correct Answer: 3

Which is used to keep the call by reference value as intact?





✅ Correct Answer: 2

By default how the value are passed in c++?





✅ Correct Answer: 1

What will happen when we use void in argument passing?





✅ Correct Answer: 1

Where does the return statement returns the execution of the program?





✅ Correct Answer: 2

When will we use the function overloading?





✅ Correct Answer: 1

 If the user did not supply the value, what value will it take?





✅ Correct Answer: 1

Where can the default parameter be placed by the user?





✅ Correct Answer: 2

Which value will it take when both user and default values are given?





✅ Correct Answer: 1

What we can’t place followed by the non-default arguments?





✅ Correct Answer: 2

If we start our function call with default arguments means, what will be proceeding arguments?





✅ Correct Answer: 3

What is the default return type of a function?





✅ Correct Answer: 2