PDI · Question #197
PDI Question #197: Real Exam Question with Answer & Explanation
Sign in or unlock PDI to reveal the answer and full explanation for question #197. The question stem and answer options stay visible for context.
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?
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.
Unlock PDI to see the answer
You've previewed enough free PDI questions. Unlock PDI 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.