MCQ Single Best Answer Easy

QWhat are the three main Object-Oriented Programming components?

ID: #9371 Module 12: X++ Overview 290 views
Question Info
#9371Q ID
EasyDifficulty
Module 12: X++ OverviewTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Classes, objects, variables
  • B Classes, methods, objects
  • C Methods, variables, classes
  • D Methods, objects, variables
Correct Answer: Option C

Explanation

Justification:

  1. Classes and objects are two of three components of object oriented programming. While variables are used in programming, they are not considered a component of object oriented programming.
  2. The three pillars of object oriented programming are classes, methods and objects. Classes are blueprints that describe the objects derived from them. A class is a model classification of the methods and variables in a specific type of object. Objects are instances of classes. Each instance has data members and logic (methods) defined in the class. Methods are functions (subroutines) associated with a class or an object. An object implements its behavior with methods.
  3. Methods and classes are two of the three pillars. However, variables are not considered one of the three main components of object oriented programming. They are used in many programming languages, but are not object oriented programming specific.
  4. Methods and objects are two of the three pillars. However, variables are not considered one of the three main components of object oriented programming. They are used in many programming languages, but are not object oriented programming specific.

 

Related Lesson: Code Editor

No Previous Next Question

Share This Question

Challenge a friend or share with your study group.