nerdexam
Salesforce

CRT-450 · Question #197

A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: Visualforce page snippet: The value of the account type field…

The correct answer is D. Add a getter method for the actType attribute. See the full explanation below for the reasoning.

Question

A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code:

Visualforce page snippet:

The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is properly referenced on the Visualforce page, what should the developer do to correct the problem?

Exhibit

CRT-450 question #197 exhibit

Options

  • AConvert theAcccunt, type to a String.
  • BChange theAccount attribute to public.
  • CAdd with sharing to the custom controller.
  • DAdd a getter method for the actType attribute.

How the community answered

(48 responses)
  • A
    6% (3)
  • B
    4% (2)
  • C
    10% (5)
  • D
    79% (38)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice