Black Friday Mega Deal! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 11 Question 44 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 44
Topic #: 11
[All Salesforce Certified Platform Developer II (Plat-Dev-301) Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Flo
10 days ago
Wait, are we really supposed to use "multiple" in D? That seems off.
upvoted 0 times
...
Viki
15 days ago
D looks like a typo, not even close!
upvoted 0 times
...
Jacinta
21 days ago
C won't work, you can't do calculations directly in the template.
upvoted 0 times
...
Leah
27 days ago
I think B is better, it sounds more descriptive.
upvoted 0 times
...
Luis
1 month ago
Option A is the correct choice!
upvoted 0 times
...
Alfreda
1 month ago
Option C looks tempting, but I feel like it might not work since you can't directly use expressions in the template like that.
upvoted 0 times
...
Jimmie
1 month ago
I remember practicing a similar question, and I think using a getter like in option A is the best approach for this scenario.
upvoted 0 times
...
Amber
1 month ago
I'm not entirely sure, but option B seems a bit off with the naming. Shouldn't it be getTotal instead of calculate Total?
upvoted 0 times
...
Lyla
1 month ago
I think option A sounds right because it mentions a getter method, which is a common practice in LWC for calculating values dynamically.
upvoted 0 times
...
Shaniqua
2 months ago
Wait, is risk management the overall process that includes assessment, analysis, and control? I want to make sure I don't mix up the definitions on the exam.
upvoted 0 times
...
Meghan
2 months ago
I'm pretty sure it's Merkle Tree, but I'll double-check the details in my notes just to be sure.
upvoted 0 times
...
Rosio
2 months ago
Wireshark is definitely the answer here. I've used it extensively for network troubleshooting and packet analysis, so I'm very familiar with its capabilities. This is an easy one for me.
upvoted 0 times
...
Simon
3 years ago
Why would it be B? what is the calculate in calculate Total()? It should be A. First update the first line to import { LightningElement, api } from 'lwc'; then add in the get method. Just returning quantity * unitPrice is also incorrect. You should put the this in front to let the system know what to reference.
upvoted 1 times
...

Save Cancel