View Mode
Q: 1
What is the result of the following code? Salesforce Plat Dev 201 question
Options
Q: 2
How should a developer write unit tests for a private method in an Apex class?
Options
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
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
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
Q: 6
The following Apex method is part of the ContactService class that is called from a trigger: Salesforce Plat Dev 201 question How should the developer modify the code to ensure best practices are met? A) Salesforce Plat Dev 201 question B) Salesforce Plat Dev 201 question C) Salesforce Plat Dev 201 question D)
Options
Q: 7
When using Salesforce DX, what does a developer need to enable to create and manage scratch orgs?
Options
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
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
Q: 10
Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?
Options
Question 1 of 20 · Page 1 / 2

Premium Access Includes

  • Quiz Simulator
  • Exam Mode
  • Progress Tracking
  • Question Saving
  • Flash Cards
  • Drag & Drops
  • 3 Months Access
  • PDF Downloads
Get Premium Access
Scroll to Top

FLASH OFFER

Days
Hours
Minutes
Seconds

avail 10% DISCOUNT on YOUR PURCHASE