Salesforce
PDII · Question #79
PDII Question #79: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #79. The question stem and answer options stay visible for context.
Question
A developer wants to create a Visualforce page that allows a user to search for a given account by Name. If the account is found, the account details should be populated on screen. If no account is found, an error message should be displayed to the user. How can this be accomplished? (Choose two.)
Options
- AUse the (apex: information) tag to display the error message
- BUse the ApexPages.addMessage() method to add the error message
- CUse the apex:pageMessages tag to display the error message
- DUse the account.addError() method to add the error message
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII 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.