Programmatic Development Using Apex and Visualforce (DEX 450) Quiz Questions and Answers
What is the advantage of Salesforce Lightning?
Answer :
Pre-defined components to give Standard Look and Feel
A developer creates an Apex helper class to handle complex trigger logic.How can the helper class warn users when the trigger exceeds DML governor limits?
Answer :
By using Limits.getDMLRows() and then display an error message before the number of DML statements is exceeded
Which requirement needs to be implemented using standard workflow instead of Process Builder? Choose 2 answers
Answer :
Create activities at multiple intervals
Send outbound message without Apex code
What is the preferred way of accessing web content such as images, stylesheets, JavaScript, and other libraries that is used in Visualforce pages?
Answer :
By uploading the content as a Static Resource.
A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to parent Account in Salesforce. Which kind of relationship would the developer use to relate the Account to the warehouse?
Answer :
Lookup
What is a good practice for a developer to follow when writing a trigger? Choose 2 answers
Answer :
Using the Map data structure to hold query results by ID
Using the set data structure to ensure distinct records
In which order does Salesforce execute events upon saving a record?
Answer :
Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit
Which code block returns the ListView of an Account object using the following debug statement?
system.debug(controller.getListViewOptions());
Answer :
ApexPages.StandardSetController controller = new
ApexPages.StandardSetController(Database.queryLocator(‘SELECT Id from Account LIMIT 1’));
What is a valid statement about Apex classes and interfaces? Choose 2 answers
Answer :
The default modifier for a class is private
Exception classes must end with the word exception
A candidate may apply to multiple jobs at the company Universal Container by submitting a single application per job posting. Once an application submitted for a job posting, that application cannot be modified to be resubmitted to a different job posting. What can the administrator do to associate an application with each job posting in the schema for the organization?
Answer :
Create a master-detail relationship in the Applications custom object to the Job Posting custom object