Question: 11. friend operator objl>obj2 will be interpreted as: A) operator>(obj1,obj2) B) >obj 1,obj2) C) obj2.operator>(obj1) D) obj 1.operator>(obj2) 12. In order to make the object
11. friend operator objl>obj2 will be interpreted as: A) operator>(obj1,obj2) B) >obj 1,obj2) C) obj2.operator>(obj1) D) obj 1.operator>(obj2) 12. In order to make the object of derived class to access the protected members of base class, which is the correct statement? A) it is impossible to accomplish B) using protected inheritance C) using private inheritance D) using public inheritance 13. Which of the following description about linked list is wrong? A) Each node in a linked list has next pointer. B) An empty linked list contains no nodes. C) A linked list should have a head pointer. D) Llinked list is the same as array. 14. Given declaration : class Sample{ int n; public: void setValue(int nl); }; Which is the correct definition of function setvalue defined outside the class? A) Sample::setValue(int n() {n=n0;} B) void Sample::setValue(int n0) {n=n0;} C) void setValue(int n() {n=n0;} D) setValue(int n() {n=n0;} 15. Reference is another name of a variable, which is the wrong definition of reference variable j? A) int i; int &j=i; B) int i; int j=i; C) int i; int j=&i; D) int i; double &j=i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
