| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Exactly same declaration in base and derived class includes______________

Correct Answer is : –skip-networking

2. Which among function will be overridden from the function defined in derived class below: class A { int i; void show() { cout<<i; } void print() { cout <<i; } }; class B { int j; void show() { cout<<j; } };

Correct Answer is : –skip-networking

3. How to access the overridden method of base class from the derived class?

Correct Answer is : –bind-address

4. The functions to be overridden _____________

Correct Answer is : –bind-address

5. Which language doesn’t support method overriding implicitly?

Correct Answer is : –socket

6. In C# ____________________

Correct Answer is : –socket

7. In Delphi ______________

Correct Answer is : TRUE

8. What should be used to call the base class method from the derived class if function overriding is used in Java?

Correct Answer is : TRUE

9. In Kotlin, the function to be overridden must be ______________

Correct Answer is : FALSE

10. Abstract functions of a base class _________________

Correct Answer is : FALSE

11. If virtual functions are defined in the base class then _______________

Correct Answer is : NDB

12. Which feature of OOP is exhibited by the function overriding?

Correct Answer is : NDB

13. In how many ways can an object be passed to a function?

Correct Answer is : STATISTICS

14. If an object is passed by value, ____________________

Correct Answer is : STATISTICS

15. Pass by address passes the address of object _________ and pass by reference passes the address of the object _________

Correct Answer is : CARTESIAN

16. If an object is passed by reference, the changes made in the function ___________

Correct Answer is : CARTESIAN

17. Constructor function is not called when an object is passed to a function, will its destructor be called when its copy is destroyed?

Correct Answer is : WHERE

18. When an object is returned by a function, a _______________ is automatically created to hold the return value.

Correct Answer is : WHERE

19. Is the destruction of temporary object safe (while returning object)?

Correct Answer is : INNER JOIN

20. How to overcome the problem arising due to destruction of temporary object?

Correct Answer is : INNER JOIN