MCQ Quiz with Score

Multiple Choice Quiz

1: What is inheritance in Java?




2: Which keyword is used to establish inheritance in Java?




3: Which of the following statements is true about multiple inheritance in Java?




4: In Java, a subclass inherits members (fields and methods) from its superclass except:?




5: Which access modifier allows a subclass to access a member of its superclass?




6: What is the primary purpose of the super keyword in Java?




7: Which method in a subclass is used to override a method of the superclass?




8: If a class does not extend any other class explicitly, which class does it implicitly extend in Java?




9: Which type of relationship best describes inheritance between classes?




10: Which keyword is used to prevent a method in a subclass from being overridden?z