Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 287 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 287
Topic #: 1
[All Certified Platform Developer II Questions]

Given the following containment hierarchy:



What is the correct way to communicate the new value of a property named “passthrough” to my-parent-component if the properly is defined within my-child-component?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
stan_malta
1 year ago
Selected Answer: B
Don't forget the value passing, C passes nothing
upvoted 1 times
...
Sapphire808
1 year, 1 month ago
B https://trailhead.salesforce.com/content/learn/projects/communicate-between-lightning-web-components/communicate-from-child-to-parent Send Data With A Custom Event section
upvoted 2 times
...
BrucePark
1 year, 3 months ago
Selected Answer: C
C is correct. Firstly, the detail param is optional. (https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent) Secondly, the question doesn't provide anything about the detail param. Therefore, C is correct.
upvoted 1 times
...
RegNav
1 year, 6 months ago
Selected Answer: B
To pass data to the event you specify an object that includes the ‘detail’ property in the CustomEvent() constructor. This ‘detail’ property is used for passing custom value.
upvoted 2 times
...
Ullr
1 year, 7 months ago
we have to pass the value in DETAIL section, so B is correct answer
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...