A developer creates a custom controller and a custom Visualforce page by using the code block
below:
public class MyController {
public String myString {
get {
if (myString == null) { myString = 'a';
}
return myString;
} private set; } public string getMyString (){
return 'getMyString';
} public string getStringMethod () {
if (myString == null) {
myString = 'b';
} return myString;
}
}
What can the user expect to see when accessing the custom page?
A. A, a, a
B. B, b, b
C. A, b, getMyString
D. B, a, getMyString
A developer needs to find information about @future methods that were invoked. From which system monitoring feature can the developer see this information?
A. Scheduled jobs
B. Apex Jobs
C. Background Jobs
D. Asynchronous Jobs
From which two locations can a developer determine the overall code coverage for a sandbox? Choose two answers
A. The Apex classes setup page
B. The Test Suite Run panel the Developer Console
C. The Test Tab of the Developer Console
D. The Apex Test Execution page
A developer needs to provide a way to mass edit, update, and delete records from a list view. In which two ways can this be accomplished? Choose 2 answers
A. Create a new Visualforce page and Apex Controller for the list view that provides mass edit, update and delete functionality.
B. Configure the user interface and enable both inline editing and enhanced lists.
C. Download an unmanaged package from the AppExchange that provide customizable mass edit, update, and delete functionality.
D. Download a managed package from the AppExchange that provides customizable Enhanced List
Which query should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?
A. IND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id,name), contact(id,name)
B. SELECT lead(id, name), account(id, name), contact(id,name) FROM Lead, Account, Contact WHERE Name = 'Universal Containers'
C. FIND 'Universal Containers' IN CompanyName Fields RETURNING lead(id,name), account (id,name), contact(id,name)
D. SELECT Lead.id, Lead. Name, Account.id, Account.Name, Contact.Id, Contact. Name FROM Lead, Account, Contact WHERE CompanyName = 'Universal Containers'
For which example task should a developer use a trigger rather than a workflow rule?
A. To set the primary Contact on an Account record when it is saved
B. To send an email to hiring manager when a candidate accepts a job offer.
C. To set the Name field of an expense report record to Expense and the Date when it is saved.
D. To notify an external system that a record has been modified.
Which three resources in a Lightning Component Bundle can contain JavaScript functions? Choose 3
A. Renderer
B. Design
C. Helper
D. Controller
E. Style
Which two statements can a developer use to throw a custom exception of type MissingFieldValueException? Choose 2 answers.
A. Throw Exception (new MissingFieldValueException());
B. Throw (MissingFieldValueException, 'Problem occurred');
C. Throw new MissingFieldValueException();
D. Throw new MissingFieldValueException ('Problem occurred');
Which two components are available to deploy using the METADATA API? Choose 2 answers
A. Web-to-Case
B. Lead Conversion Settings
C. Case Settings
D. Web-to-Lead
Which two approaches optimize test maintenance and support future declarative configuration changes? Choose 2 answers.
A. Create a method that queries for valid records, then call this method within test methods.
B. Create a methods that loads valid Account records from a static resources, then call this method within test methods.
C. Create a method that performs a callout for valid records, then call this method within test methods.
D. Create a method that creates valid records,then call this method within test methods.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.