Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1class Dog extends Animal { ... } | AWrong - 'super' must be lowercase | |
| 2super(name); | Bextends | |
| 3Lets one class inherit properties and methods from another | CWrong - 'extends' must be lowercase | |
| 4Calls the parent class's constructor inside a child class | DCalls the parent class's constructor with name | |
| 5class Dog Extends Animal { ... } | EDeclares Dog as a subclass that inherits from Animal | |
| 6Super(name); | Fsuper() |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
extends — Lets a class inherit properties and methods from another class.class Dog extends Animal {super(name);class Cat extends Animal {constructor(name) {
super(name);
}class Puppy extends Dog {