Object Oriented Programming interview questions part 2

Object Oriented Programming interview questions part 2

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

Total Questions: 20

1. Which among the following best defines the abstract methods?

Correct Answer is : Functions only declared in base class

2. Which among the following is true?

Correct Answer is : The abstract functions must be only declared in derived classes

3. How are abstract functions different from the abstract functions?

Correct Answer is : Abstract must not be defined in base class whereas virtual function can be defined

4. Which among the following is correct?

Correct Answer is : Abstract functions must be defined in all the derived classes

5. It is _________________________ to define the abstract functions.

Correct Answer is : Necessary for all the derived classes

6. The abstract function definitions in derived classes is enforced at _________

Correct Answer is : Compile time

7. What is this feature of enforcing definitions of abstract function at compile time called?

Correct Answer is : Dynamic polymorphism

8. What is the syntax for using abstract method?

Correct Answer is : abstractmethod_name (parameter)

9. If a function declared as abstract in base class doesn’t have to be defined in derived class then ______

Correct Answer is : Derived class should be made abstract class

10. Static methods can’t be made abstract in java.

Correct Answer is : TRUE

11. Which among the following is true?

Correct Answer is : Abstract methods must not be static

12. Which among the following is correct for abstract methods?

Correct Answer is : It must have same prototype in both base and derived class

13. If a class have all the abstract methods the class will be known as ___________

Correct Answer is : Abstract class

14. The abstract methods can never be ___________ in a base class.

Correct Answer is : Private

15. The abstract method definition can be made ___________ in derived class.

Correct Answer is : Private, public, or protected

16. Which among the following best defines abstraction?

Correct Answer is : Hiding the implementation and showing only the features

17. Hiding the implementation complexity can:

Correct Answer is : Make the programming easy

18. Class is _________ abstraction

Correct Answer is : Logical

19. Object is ________ abstraction

Correct Answer is : Real

20. Abstraction gives higher degree of ________

Correct Answer is : Idealized interface

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon