Basic OOP Concepts Explained with MCQs – Class, Object, Attributes & Methods

1.A class in Object-Oriented Programming can best be described as:





2. An object in OOP represents:





3. Which of the following is an example of a class?





4. Which of the following is an example of an object?





5. Attributes in a class are also known as:





6. Methods in a class are used to:





7. In the example class Car:, what is “Car”?





8. In myCar = Car(), what is happening?





9. If Car has an attribute color, how would you access it in myCar object?





10. Which of the following is a method inside a Car class?





Wait for 20 seconds...

Post a Comment

Previous Post Next Post