MCQ Practice Single Best Answer Topic: Module 12: X++ Overview

Q What are the three main Object-Oriented Programming components?

Question ID
#9371
Subchapter
Module 12: X++ Overview
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A Classes, objects, variables
  • B Classes, methods, objects
  • C Methods, variables, classes
  • D Methods, objects, variables
Correct Answer: 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

Share This Question

Share this MCQ with your friends or study group.