Salesforce
PDII · Question #343
PDII Question #343: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #343. The question stem and answer options stay visible for context.
Question
A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price. What must be added to display the total?
Exhibit
Options
- AAdd calculateTotal() { return quantity * unitPrice; } to the JavaScript and Total: {calculateTotal()}in
- BAdd get total() { return quantity * unitPrice; } to the JavaScript and Total: {total} in the template.
- CAdd Total: {multiply{quantity, unitPrice}} in the template.
- DAdd Total: {quantity * unitPrice} in the template.
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
