
Q: 1
What is the result of the following code?


Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 2
How should a developer write unit tests for a private method in an Apex class?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 3
A developer needs to have records with specific field values in order to test a new Apex class.
What should the developer do to ensure the data is available to the test?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 4
A developer has a single custom controller class that works with a Visualforce Wizard to support
creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple
Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 5
A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are
rendering on the page.
Which component should be added to the Visualforce page to display the message?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 6
The following Apex method is part of the ContactService class that is called from a trigger:
How should the developer modify the code to ensure best practices are met?
A)
B)
C)
D)
How should the developer modify the code to ensure best practices are met?
A)
B)
C)
D)Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 7
When using Salesforce DX, what does a developer need to enable to create and manage scratch
orgs?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 8
A custom picklist field, Pool Preference ¢, exists on a custom object. The picklist contains the
following options: ‘Vegan’, ‘Kosher’, 'No Preference’. The developer must ensure a value is populated
every time a record is created or updated.
What is the optimal way to ensure a value is selected every time a record is saved?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Q: 9
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of
the application modules allows the user to calculate body fat using the Apex class, Bodyfat, and its
method, calculateBodyFat (). The product owner wants to ensure this method is accessible by the
consumer of the application when developing customizations outside the ISV's package namespace.
Which approach should a developer take to ensure calculateBodyFat () is accessible outside the
package namespace?
Options
Discussion
No comments yet. Be the first to comment.
Be respectful. No spam.
Question 1 of 20 · Page 1 / 2