Python Institute JSA-41-01 Practice Exams
Last updated on Oct 22,2026- Exam Code: JSA-41-01
- Exam Name: JSA - Certified Associate JavaScript Programmer
- Certification Provider: Python Institute
- Latest update: Oct 22,2026
Consider the following requirement: You need to create a class Person that includes a constructor accepting two parameters name and age. The class should also have a method describe which returns a string describing the person.
Which of the following implementations correctly defines the class and its methods?
- A . class Person { constructor(name, age) { this.name = name; } describe() { return `${this.name} is ${this.age} years old.`; }}
- B . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${this.name} is ${this.age} years old.`; }}
- C . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${name} is ${age} years old.`; }}
- D . class Person { Person(name, age) { this.name = name; this.age = age; } describe() { return
`${this.name} is ${this.age} years old.`; }}
Consider the following requirement: You need to create a class Person that includes a constructor accepting two parameters name and age. The class should also have a method describe which returns a string describing the person.
Which of the following implementations correctly defines the class and its methods?
- A . class Person { constructor(name, age) { this.name = name; } describe() { return `${this.name} is ${this.age} years old.`; }}
- B . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${this.name} is ${this.age} years old.`; }}
- C . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${name} is ${age} years old.`; }}
- D . class Person { Person(name, age) { this.name = name; this.age = age; } describe() { return
`${this.name} is ${this.age} years old.`; }}
Consider the following requirement: You need to create a class Person that includes a constructor accepting two parameters name and age. The class should also have a method describe which returns a string describing the person.
Which of the following implementations correctly defines the class and its methods?
- A . class Person { constructor(name, age) { this.name = name; } describe() { return `${this.name} is ${this.age} years old.`; }}
- B . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${this.name} is ${this.age} years old.`; }}
- C . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${name} is ${age} years old.`; }}
- D . class Person { Person(name, age) { this.name = name; this.age = age; } describe() { return
`${this.name} is ${this.age} years old.`; }}
Consider the following requirement: You need to create a class Person that includes a constructor accepting two parameters name and age. The class should also have a method describe which returns a string describing the person.
Which of the following implementations correctly defines the class and its methods?
- A . class Person { constructor(name, age) { this.name = name; } describe() { return `${this.name} is ${this.age} years old.`; }}
- B . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${this.name} is ${this.age} years old.`; }}
- C . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${name} is ${age} years old.`; }}
- D . class Person { Person(name, age) { this.name = name; this.age = age; } describe() { return
`${this.name} is ${this.age} years old.`; }}
Consider the following requirement: You need to create a class Person that includes a constructor accepting two parameters name and age. The class should also have a method describe which returns a string describing the person.
Which of the following implementations correctly defines the class and its methods?
- A . class Person { constructor(name, age) { this.name = name; } describe() { return `${this.name} is ${this.age} years old.`; }}
- B . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${this.name} is ${this.age} years old.`; }}
- C . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${name} is ${age} years old.`; }}
- D . class Person { Person(name, age) { this.name = name; this.age = age; } describe() { return
`${this.name} is ${this.age} years old.`; }}
Consider the following requirement: You need to create a class Person that includes a constructor accepting two parameters name and age. The class should also have a method describe which returns a string describing the person.
Which of the following implementations correctly defines the class and its methods?
- A . class Person { constructor(name, age) { this.name = name; } describe() { return `${this.name} is ${this.age} years old.`; }}
- B . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${this.name} is ${this.age} years old.`; }}
- C . class Person { constructor(name, age) { this.name = name; this.age = age; } describe() { return `${name} is ${age} years old.`; }}
- D . class Person { Person(name, age) { this.name = name; this.age = age; } describe() { return
`${this.name} is ${this.age} years old.`; }}
You need to validate an email address in JavaScript.
Which of the following regular expressions correctly validates the format of an email address?
- A . /^w+@w+.w+$/
- B . /^w+@w+.w{2,}$/
- C . /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+.w{2,3}$/
- D . /^[w.-]+@[a-zA-Zd.-]+.[a-zA-Z]{2,6}$/
You need to validate an email address in JavaScript.
Which of the following regular expressions correctly validates the format of an email address?
- A . /^w+@w+.w+$/
- B . /^w+@w+.w{2,}$/
- C . /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+.w{2,3}$/
- D . /^[w.-]+@[a-zA-Zd.-]+.[a-zA-Z]{2,6}$/
You need to validate an email address in JavaScript.
Which of the following regular expressions correctly validates the format of an email address?
- A . /^w+@w+.w+$/
- B . /^w+@w+.w{2,}$/
- C . /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+.w{2,3}$/
- D . /^[w.-]+@[a-zA-Zd.-]+.[a-zA-Z]{2,6}$/
You need to validate an email address in JavaScript.
Which of the following regular expressions correctly validates the format of an email address?
- A . /^w+@w+.w+$/
- B . /^w+@w+.w{2,}$/
- C . /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+.w{2,3}$/
- D . /^[w.-]+@[a-zA-Zd.-]+.[a-zA-Z]{2,6}$/