⟩ What is do..while loops structure?
DO..WHILE loops are useful for things that want to loop at least once. The structure is
do {
} while ( condition );
DO..WHILE loops are useful for things that want to loop at least once. The structure is
do {
} while ( condition );
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
Can we alter/modify the values of data members of a class inside const member function? a. Yes b. No.
Can member functions of one class be friend functions of another class? a. Yes b. No