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 { name = "Rex"; } | AWrong - 'class' must be lowercase | |
| 2new Dog() | Bclass | |
| 3Declares a reusable blueprint for creating objects | CWrong - 'new' must be lowercase | |
| 4Creates an instance of a class | DCreates a new instance of the Dog class | |
| 5Class Dog { name = "Rex"; } | EDeclares a blueprint for creating Dog objects | |
| 6let d = New Dog(); | Fnew |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
class — Declares a blueprint for creating objects with shared properties and methods.class Dog {let myDog = new Dog();class Cat {let c = new Cat();class Bird {