⟩ What is Else If Syntax?
if (
// Execute these statements if
}
else if (
// Execute these statements if
//
}
if (
// Execute these statements if
}
else if (
// Execute these statements if
//
}
What is Protected Inheritance?
Default return type of functions in CPP is a. void b. long c. char d. int
Do you know private, protected and public access control?
By default, if a function with minimum lines of code is declared and defined inside the class becomes Inline function. a. True b. False
Inline functions may not work ______. 1. If function contain static variables 2. If function contain global and register variables 3. If function returning value consists looping construct(i.e. for, while) 4. If inline functions are recursive 5. If function contains const value a. Only 1,4,5 b. Only 2,3,5 c. Only 1,3,4 d. All of these
Default values for a function are specified when____ a. function is defined b. function is declared c. Both a and b d. None of these
Assigning one or more function body to the same name is called_______________ a. Function Overriding b. Function Overloading c. Both a and b d. None
If an argument to a function is declared as const, then a. function can modify the argument b. Function can't modify the argument c. const argument to a function is not possible d. None of these
A const object of a class can call non-const member function of the class. a. True b. False
Const member function does not allow to modify/alter value of any data member of the class. a. True b. False