Object Oriented Programming Quiz Questions And Answers

12 Questions | Attempts: 40289
Share

SettingsSettingsSettings
Object Oriented Programming Quiz Questions And Answers - Quiz

Get ready for an Object-oriented programming quiz. Welcome to a whole new test on object-oriented programming. The OOP paradigm of programming has changed how programmers used to look at problems. This paradigm of programming primarily focuses on "objects" rather than functions, so it is way too effective in solving real-world problems. This quiz comprises different questions of the concepts of the same with different levels of toughness. So, let's begin.


Questions and Answers
  • 1. 
    The method with the same name or different return type and difference in the parameters either in number or type is known as:
    • A. 

      Function overloading

    • B. 

      Compile Time Overloading

  • 2. 
    To call a base class constructor in a derived class, is it needed to call the base class initializer.
    • A. 

      True

    • B. 

      False

  • 3. 
    Can objects of abstract classes be instantiated?
    • A. 

      True

    • B. 

      False

  • 4. 
    The process by which one object can acquire the properties of another object:
    • A. 

      Encapsulation

    • B. 

      Inheritance

    • C. 

      Polymorphism

  • 5. 
    Constructors are used to:
    • A. 

      To build a user interface.

    • B. 

      Free memory.

    • C. 

      Initialize a newly created object.

    • D. 

      To create a sub-class.

  • 6. 
    An object that has more than one form is referred to as:
    • A. 

      Inheritance

    • B. 

      Interface

    • C. 

      Abstract class

    • D. 

      Polymorphism

  • 7. 
    Information Hiding can also be termed as:
    • A. 

      Data hiding

    • B. 

      Encapsulation

    • C. 

      Inheritance

  • 8. 
    Pick the term that relates to polymorphism:
    • A. 

      Dynamic binding

    • B. 

      Dynamic allocation

    • C. 

      Static typing

    • D. 

      Static allocation

  • 9. 
    Main method can be overridden:
    • A. 

      True

    • B. 

      False

  • 10. 
    The keyword which is used to access the method or member variables from the superclass:
    • A. 

      Super

    • B. 

      Using

    • C. 

      Is_a

    • D. 

      Has_a

  • 11. 
    What modifiers are allowed for methods in an Interface? (choose one or more answers)
    • A. 

      Public

    • B. 

      Private

    • C. 

      Abstract

  • 12. 
    When sub class declares a method that has the same type of arguments as a method declared by one of its superclasses, it is termed as:
    • A. 

      Method overriding

    • B. 

      Method overloading

    • C. 

      Operator overloading

    • D. 

      Operator overriding

Related Topics

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.