⟩ Function can be declared as friend maximum only in two classes. a. True b. False
b. False
b. False
C++ supports …. a) constant pointer b) pointer to a constant c) None of above d) Both of above
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