nerdexam
Salesforce

PDII · Question #309

Consider the following code snippet: How should the component communicate to the component that an order has been selected by the user?

The correct answer is C. Create and dispatch a custom event. See the full explanation below for the reasoning.

Question

Consider the following code snippet:

How should the component communicate to the component that an order has been selected by the user?

Exhibit

PDII question #309 exhibit

Options

  • ACreate and fire a standard DOM event.
  • BCreate and fire a component event.
  • CCreate and dispatch a custom event.
  • DCreate and fire an application event.

How the community answered

(43 responses)
  • A
    5% (2)
  • B
    14% (6)
  • C
    74% (32)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice