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
Question #157
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}$/
Correct Answer: D
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C
Question #172
};
- A . let dog = new animal({ breed: ‘Dog’});
- B . let dog = function(animal) { this.breed = ‘Dog’;};
- C . let dog = Object.create(animal, { breed: { value: ‘Dog’ }});
- D . let dog = animal.create({ breed: ‘Dog’});
Correct Answer: C