| 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. How many classes can be defined in a single program?

Correct Answer is : >/<

2. When OOP concept did first came into picture?

Correct Answer is : No

3. Why Java is Partially OOP language?

Correct Answer is : Only those values are selected whose product_id is either ‘sav’, ‘chd’, ‘mm’

4. Which concept of OOP is false for C++?

Correct Answer is : Only those values are selected whose product_id does not belong to either ‘sav’, ‘chd’, ‘mm’

5. Which header file is required in C++ to use OOP?

Correct Answer is : {5, 6}

6. Which of the two features match each other?

Correct Answer is : None of the mentioned

7. Which feature allows open recursion, among the following?

Correct Answer is : {5, 6}

8. Which feature of OOP indicates code reusability?

Correct Answer is : {1, 2, 3, 4, 5, 6}

9. If a function can perform more than 1 type of tasks, where the function name remains same, which feature of OOP is used here?

Correct Answer is : {1, 4}

10. If different properties and functions of a real world entity is grouped or embedded into a single element, what is it called in OOP language?

Correct Answer is : {2, 4, 5, 6}

11. Which of the following is not feature of pure OOP?

Correct Answer is : Empty set

12. Which among the following doesn’t come under OOP concept?

Correct Answer is : Only those employees are selected whose last name started with ‘T’

13. Which feature of OOP is indicated by the following code? class student{ int marks; }; class topper:public student{ int age; topper(int age){ this.age=age; } };

Correct Answer is : Only those employees are selected whose last name started with ‘F’

14. Which feature may be violated if we don’t use classes in a program?

Correct Answer is : Only those employees are selected whose first name started with ‘F’

15. How many basic features of OOP are required for a programming language to be purely OOP?

Correct Answer is : Only those employees are selected whose first name and last name started with ‘F’

16. The feature by which one object can interact with another object is:

Correct Answer is : All of the mentioned

17. ___________ underlines the feature of Polymorphism in a class.

Correct Answer is : All employees whose last name should started with ‘F’ and end with ‘T’

18. Which feature in OOP is used to allocate additional function to a predefined operator in any language?

Correct Answer is : All employees whose last name should started with ‘F’ and end with ‘T’

19. Which among doesn’t illustrates polymorphism?

Correct Answer is : All employees whose last name should contain substring “bas” or first name should contain substring “bbs”

20. Exception handling is feature of OOP. (True/False)

Correct Answer is : All of the mentioned