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
})();
What will be the output of the code when it is executed?
- A . JavaScriptJavaScript
- B . JSJS
- C . JSJavaScript
- D . undefinedundefined
})();
What will be the output of the code when it is executed?
- A . JavaScriptJavaScript
- B . JSJS
- C . JSJavaScript
- D . undefinedundefined
Which of the following correctly generates a random integer between 1 and 10 (inclusive)?
- A . return Math.ceil(Math.random() * 10);
- B . return Math.floor(Math.random() * 10) + 1;
- C . return Math.abs(Math.random() * 10);
- D . return Math.round(Math.random() * 10);
Which of the following correctly generates a random integer between 1 and 10 (inclusive)?
- A . return Math.ceil(Math.random() * 10);
- B . return Math.floor(Math.random() * 10) + 1;
- C . return Math.abs(Math.random() * 10);
- D . return Math.round(Math.random() * 10);
Which of the following correctly generates a random integer between 1 and 10 (inclusive)?
- A . return Math.ceil(Math.random() * 10);
- B . return Math.floor(Math.random() * 10) + 1;
- C . return Math.abs(Math.random() * 10);
- D . return Math.round(Math.random() * 10);
Which of the following correctly generates a random integer between 1 and 10 (inclusive)?
- A . return Math.ceil(Math.random() * 10);
- B . return Math.floor(Math.random() * 10) + 1;
- C . return Math.abs(Math.random() * 10);
- D . return Math.round(Math.random() * 10);
Which of the following correctly generates a random integer between 1 and 10 (inclusive)?
- A . return Math.ceil(Math.random() * 10);
- B . return Math.floor(Math.random() * 10) + 1;
- C . return Math.abs(Math.random() * 10);
- D . return Math.round(Math.random() * 10);
Which of the following correctly generates a random integer between 1 and 10 (inclusive)?
- A . return Math.ceil(Math.random() * 10);
- B . return Math.floor(Math.random() * 10) + 1;
- C . return Math.abs(Math.random() * 10);
- D . return Math.round(Math.random() * 10);
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.`; }}