Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which among the following, for a pure OOP language, is true?
Correct Answer is : All of the mentioned
2. OOP provides better security than POP:
Correct Answer is : All of the mentioned
3. Which among the following best describes constructor overloading?
Correct Answer is : All of the mentioned
4. Can constructors be overloaded in derived class?
Correct Answer is : Both NOT(true)=false and NOT(false)=true
5. Does constructor overloading include different return types for constructors to be overloaded?
Correct Answer is : All of the mentioned
6. Which among the following is possible way to overload constructor?
Correct Answer is : All of the mentioned
7. Which constructor will be called from the object created in the code below?
class A
{
int i;
A()
{
i=0; cout<<i;
}
A(int x=0)
{
i=x; cout<<I;
}
};
A obj1;
Correct Answer is : Only tellers who began working for the bank prior to 2007 will be included
8. Which among the following is false for a constructor?
Correct Answer is : All of the mentioned
9. When is the constructor called for an object?
Correct Answer is : Only those rows will be selected whose” end_date” should be NULL
10. Which among the following function can be used to call default constructor implicitly in java?
Correct Answer is : The result set contains non terminated employees who both are non tellers and started working for the bank from 2007 or later
11. Why do we use constructor overloading?
Correct Answer is : my_sys.h
12. If programmer have defined parameterized constructor only, then __________________
Correct Answer is : my_global.h
13. Which among the following is not valid in java?
Correct Answer is : pointer to a structure
14. Which constructor will be called from the object obj2 in the following program?
class A
{
int i;
A()
{
i=0;
}
A(int x)
{
i=x+1;
}
A(int y, int x)
{
i=x+y;
}
};
A obj1(10);
A obj2(10,20);
A obj3;
Correct Answer is : TRUE
15. What is we only create an object but don’t call any constructor for it in java?
Correct Answer is : LIBMYSQL_VERSION
16. Which among the following is false?
Correct Answer is : LIBMYSQL_VERSION_ID
17. Which is correct syntax?
Correct Answer is : –host
18. How much memory will be allocated for an object of class given below?
class Test{
int mark1;
int mark2;
float avg;
char name[10];
};
Correct Answer is : TRUE
19. Which among the following best describes member function overriding?
Correct Answer is : all
20. Which is the correct condition for function overriding?