
SalesforceCertified Platform Developer II
Domain 7Objective 3
Describe the Implications of Testing Visualforce Controllers and Controller Extensions. PLATFORM-DEVELOPER-II Practice Questions (Page 1)
Part of the TESTING domain, which accounts for 7% of the PLATFORM-DEVELOPER-II exam.
27questions here
6free pages
10concepts
7%of the exam
Questions 1–5
- 1
When testing a controller that uses view state, what should you keep in mind?
Select an answer first - 2
A developer has a Visualforce page that uses a standard controller for the Account object and a custom controller extension that adds a method called getRecentOrders() which queries the five most recent Order records for the current Account. In an Apex test method, what is the correct way to instantiate the controller extension so the test can invoke getRecentOrders()?
Select an answer first - 3
How do you instantiate a controller extension in a test?
Select an answer first - 4
What is the recommended way to test that a controller method throws an exception?
Select an answer first - 5
What is a best practice for structuring controller tests to ensure maintainability?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Salesforce. “PLATFORM-DEVELOPER-II” is a trademark of its owner, used for identification only.