Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Member functions of a generic class are _____________
Correct Answer is : FALSE
2. Member function of a class can ____________
Correct Answer is : have_query_cache
3. Which among the following is proper syntax for class given below?
class A
{
int a,b;
public : void disp();
}
Correct Answer is : 0
4. A member function can _______________ of the same class
Correct Answer is : 2
5. Which member function doesn’t require any return type?
Correct Answer is : TRUE
6. Which among the following is not possible for member function?
Correct Answer is : 3
7. Which among the following are valid ways of overloading the operators?
Correct Answer is : C
8. Which among the following is mandatory condition for operators overloading?
Correct Answer is : 3
9. When the operator to be overloaded becomes the left operand member then ______________
Correct Answer is : TRUE
10. If the left operand is pointed by *this pointer, what happens to other operands?
Correct Answer is : C API
11. If a friend overloaded operator have to be changed to member overloaded operator, which operator should be used with the class name?
Correct Answer is : database interface
12. What is the syntax to overload an operator?
Correct Answer is : PHP
13. Why the left parameter is removed from parameter list?
Correct Answer is : PHP
14. Which object’s members can be called directly while overloading operator function is used (In function definition)?
Correct Answer is : Java
15. If left operand member is specified directly in the function definition, which is the correct implicit conversion of that syntax?
Correct Answer is : TRUE
16. When the friend operator overloading is converted into member operator overloading _______________
Correct Answer is : .err
17. Where in the parameter list is the implicit *this is added?
Correct Answer is : –verbose
18. Which operator among the following can be overloading using only member function?
Correct Answer is : option file
19. Which operator among the following can be overloaded using both friend function and member function?
Correct Answer is : TRUE
20. All the operators can be overloaded using the member function operator overloading.
Correct Answer is : TRUE
Similar Interview Questions
Search for latest jobs
Get $5 added to your wallet for registering an account. Refer others and get $1 for each successful referral. Earn while you search for jobs and redeem in gift cards!