1. A destructor function is called automatically when the object goes out of scope: I. the function ends II. the program ends III. a block containing local variables ends A. I , II, III B. I, II, C. Only II D. I , III 2. Which of the following is correct? If C1, C2, C3 are objects of class Complex. Statement C3=C1+C2 may be implicitly converted by compiler as: I. C3=operator+(C1, C2) II. C3=C1.operator+(C2) III. C3=operator+(C2, C1) IV. C3=C2.operator+(C1) A. I , II B. II, IIIC. I, IV D. II, IV 3. Match the following for + overloaded operator Col A Col B I. Unary operator with member function a. operator+(obj1, obj2) II. Unary operator with friend function b. obj1.operator+(obj2) III. Binary operator using member function c. obj1+() IV. Binary operator using friend function d. operator+(&obj1) 4. State true of false We cannot have more than one constructor in a class? 5. The seekg function parameter does not include A. position B. offset C. dir D. file pointe
1. A destructor function is called automatically when the object goes out of scope:
I. the function ends
II. the program ends
III. a block containing local variables ends
A. I , II, III
B. I, II,
C. Only II
D. I , III
2. Which of the following is correct?
If C1, C2, C3 are objects of class Complex. Statement C3=C1+C2 may be implicitly converted by
compiler as:
I. C3=operator+(C1, C2)
II. C3=C1.operator+(C2)
III. C3=operator+(C2, C1)
IV. C3=C2.operator+(C1)
A. I , II
B. II, IIIC. I, IV
D. II, IV
3. Match the following for + overloaded operator
Col A Col B
I. Unary operator with member function a. operator+(obj1, obj2)
II. Unary operator with friend function b. obj1.operator+(obj2)
III. Binary operator using member function c. obj1+()
IV. Binary operator using friend function d. operator+(&obj1)
4. State true of false
We cannot have more than one constructor in a class?
5. The seekg function parameter does not include
A. position
B. offset
C. dir
D. file pointer
Trending now
This is a popular solution!
Step by step
Solved in 2 steps