Q: If an argument from the parameter list of a function is defined constant then _______________
Solution: A function is not allowed a constant member of the parameter list.
Q: Which of the following feature is used in function overloading and function with default argument?
Solution: Both of the above types allows a function overloading which is the basic concept of Polymorphism.
Q: From which function the execution of a C++ program starts?
Solution: The execution of a C++ program starts from the main() function.
Q: Which of the following is important in a function?
Solution: The important things required in a function is its return type and its name other than that parameter list are optional which a function may or may not have.
Q: How many ways of passing a parameter are there in c++?
Solution: There are three ways of passing a parameter. They are pass by value,pass by reference and pass by pointer.
Q: Which is used to keep the call by reference value as intact?
Solution: Because const will not change the value of the variables during the execution.
Q: By default how the value are passed in c++?
Solution: None.
Q: What will happen when we use void in argument passing?
Solution: As void is not having any return value, it will not return the value to the caller.
Q: How many types of returning values are present in c++?
Solution: The three types of returning values are return by value, return by reference and return by address.
Q: What will you use if you are not intended to get a return value?
Solution: Void is used to not to return anything.
You Have Score    | /10 |