Salesforce
PDII · Question #226
PDII Question #226: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #226. The question stem and answer options stay visible for context.
Question
What should be added to the setup, in the location indicated, for the unit test above to create the controller extension for the test?
Options
- AAccountControllerExt extension = new AccountControllerExt(acct);
- BApexPages.StandardController sc = new ApexPages.StandardController(acct.Id);
- CApexPages.StandardController sc = new ApexPages.StandardController(acct);
- DAccountControllerExt extension = new AccountControllerExt(acct.Id);
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.