Python Institute JSA-41-01 Practice Exams
Last updated on Oct 24,2026- Exam Code: JSA-41-01
- Exam Name: JSA - Certified Associate JavaScript Programmer
- Certification Provider: Python Institute
- Latest update: Oct 24,2026
Question #488
console.log("Promise created");
- A . "Success!" followed by "Promise created"
- B . "Promise created" followed by "Success!"
- C . "Success!" only
- D . "Promise created" only
Correct Answer: B
Question #488
console.log("Promise created");
- A . "Success!" followed by "Promise created"
- B . "Promise created" followed by "Success!"
- C . "Success!" only
- D . "Promise created" only
Correct Answer: B
Question #488
console.log("Promise created");
- A . "Success!" followed by "Promise created"
- B . "Promise created" followed by "Success!"
- C . "Success!" only
- D . "Promise created" only
Correct Answer: B
Question #494
console.log(calculateTotal());
- A . TypeError: prices.calculate is not a function
- B . NaN
- C . 7.7
- D . undefined
Correct Answer: C
Question #494
console.log(calculateTotal());
- A . TypeError: prices.calculate is not a function
- B . NaN
- C . 7.7
- D . undefined
Correct Answer: C
Question #494
console.log(calculateTotal());
- A . TypeError: prices.calculate is not a function
- B . NaN
- C . 7.7
- D . undefined
Correct Answer: C
Question #497
Which of the following code snippets demonstrates array destructuring to swap the values of two variables?
- A . let a = 1;let b = 2;[a, b] = [2, 1];
- B . let a = 1;let b = 2;[a, b] = [b, a];
- C . let a = 1;let b = 2;a, b = b, a;
- D . let a = 1;let b = 2;a = b;b = a;
Correct Answer: B
Question #497
Which of the following code snippets demonstrates array destructuring to swap the values of two variables?
- A . let a = 1;let b = 2;[a, b] = [2, 1];
- B . let a = 1;let b = 2;[a, b] = [b, a];
- C . let a = 1;let b = 2;a, b = b, a;
- D . let a = 1;let b = 2;a = b;b = a;
Correct Answer: B
Question #497
Which of the following code snippets demonstrates array destructuring to swap the values of two variables?
- A . let a = 1;let b = 2;[a, b] = [2, 1];
- B . let a = 1;let b = 2;[a, b] = [b, a];
- C . let a = 1;let b = 2;a, b = b, a;
- D . let a = 1;let b = 2;a = b;b = a;
Correct Answer: B
Question #500
console.log(manager.getDetails());
What will be the output of console.log(manager.getDetails())?
- A . Manager Name: Alice
- B . Employee Name: Alice
- C . Employee Name: Alice, Department: HR
- D . Manager Name: Alice, Department: HR
Correct Answer: D