Home > MCQs > IT & Programming > Object Oriented Programming (OOP) MCQs

Object Oriented Programming (OOP) MCQ

Object Oriented Programming (OOP) Quick Quiz

Question 1 of 10
  • What is a method?

    Answer & Explanation

    Correct Answer: The exact same thing as a function and subroutine

    Note: This Question is unanswered, help us to find answer for this one

  • In context of OOP, what is association?

    Answer & Explanation

    Correct Answer: Association is a relationship where all objects have their own life cycle and there is no owner.

    Note: This Question is unanswered, help us to find answer for this one

  • What are the five Creational Design patterns by the Gang of Four ?

    Answer & Explanation

    Correct Answer: Abstract Factory, Builder, Factory Method, Prototype, and Singleton.

    Note: This Question is unanswered, help us to find answer for this one

  • When does static binding happen?

    Answer & Explanation

    Correct Answer: At compile time

    Note: This Question is unanswered, help us to find answer for this one

  • What is a reference to an object?

    Answer & Explanation

    Correct Answer: It is the address where the variables and methods of an object are stored.

    Note: This Question is unanswered, help us to find answer for this one

  • What is an IS-A relationship?

    Answer & Explanation

    Correct Answer: A subclass object has an IS-A relationship with its superclass or interface

    Note: This Question is unanswered, help us to find answer for this one

  • Methods and attributes that define an object are a kind of blueprint called what?

    Answer & Explanation

    Correct Answer: A class

    Note: This Question is unanswered, help us to find answer for this one

  • How do object behaviour and attributes differ?

    Answer & Explanation

    Correct Answer: Attributes describe a state; behaviours describe a change.

    Note: This Question is unanswered, help us to find answer for this one

  • The open/closed principle states that classes should be open for _ but closed for _.

    Answer & Explanation

    Correct Answer: Extension; modification

    Note: This Question is unanswered, help us to find answer for this one

  • What is the main idea behind separation of concerns?

    Answer & Explanation

    Correct Answer: All of these answers

    Note: This Question is unanswered, help us to find answer for this one

  • Object Oriented Programming (OOP) Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.