⟩ Friend function does not have this pointer associated with it. a. True b. False
a. True
a. True
char * const ptr1 = "nice"; //this is example of , a) constant pointer b) pointer to a constant c) None of above d) Both of above
int const *ptr1 = &m; // this is example of, a) Constant pointer b) Pointer to a constant c) Both of above d) None of above
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