⟩ If program uses Inline Function, then the function is expanded inline at ___________. a. Compile time b. Run time c. Both a and b d. None of these
b. Run time
b. Run time
Which of the following are valid array declaration? a) char str1[3] = "ab" b) char str1[3] = "abc" c) char str1[2] = "ab" d) char str1[0] = "ab"
Which of the following are valid array declaration? a) int num(5) b) float avg[5] c) double[5] marks d) counter int[5]
In the following statements class sports {}; class test public student{}; class result public test, public sports {}; //Here result class have implemented, a) Hierarchical inheritance b) Multiple inheritance c) Multilevel inheritance d) Both b) and c)
In C++, symbolic constants created using a) const b) enum c) Both of above d) None of above
A friend function that is a "friend" of a given class is allowed access to ______data in that class. a) public, private, or protected b) public or private c) public d) protected
Object can be used as a function argument by.. a) Pass by value b) Pass by reference c) None of above d) All of above
In the following statements, class ABC; class ABC { }; a) It is called as forward declaration b) It is called as backward declaration c) It is called as middle declaration d) It is called as simple declaration
All member function of one class can be declared as friend function of another class, is called as a) friend class b) neighbor class c) sister class d) inherited class
Inheriting a derived class from a base class needs vital changes to the base class? a) true b) false
Member function of one class can be friend function of another class a) true b) false