OPP CONCEPTSVersion en ligne Instructions: Choose the correct option (a, b, c, or d) for each question. par Camila Poblete 1 Why is OOP important? a It removes all errors b It helps structure and reuse code effectively c It makes code slower b) It removes all errors d It doesn’t allow private data 2 Which of the following is an example of inheritance a class Cat == Animal b class Dog implements Animal c class Animal: Dog d class Dog extends Animal 3 Which access modifier makes a variable accessible only within the class? a public b private c protected d static 4 What is polymorphism? a One method with different behaviors b Multiple variables with the same name c Hiding class data d Inheriting from two classes 5 What is a class in Java? a A loop structure b A data type c A blueprint for creating objects d A variable container 6 What is an object? a A static method b An instance of a class c A class itself d A type of variable