What is the result of running this Apex?
An org has a single account named ‘NoContacts’ that has no related contacts. Given the query: List<Account> accounts = [Select ID, (Select ID, Name from Contacts) fromAccount where Name=‘NoContacts’]; What is the result of running this Apex?A . accounts[0].contacts is invalid Apex.B . accounts[0].contacts is an empty Apex.C . accounts[0].contacts...
What is a benefit of using an after insert trigger over using a before insert trigger?
What is a benefit of using an after insert trigger over using a before insert trigger?A . An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.B . An afterinsert trigger allows a developer to insert other objects that reference the new...
The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?
A Visualforce page is required fordisplaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?A . controller=“Case” and extensions=“myControllerExtension”B . extensions=“myControllerExtension”C . controller=“myControllerExtension”D . standardController=“Case” and extensions=“myControllerExtension”View AnswerAnswer:...
Which three tools can deploy metadata to production? (Choose three.)
Which three tools can deploy metadata to production? (Choose three.)A . Change Set from Developer OrgB . Force.com IDEC . Data LoaderD . Change Set from SandboxE . Metadata APIView AnswerAnswer: A,D,E
Which two strategies should a developer use to accomplish this?
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage. Which two strategies should a developer use to accomplish this? (Choose two.)A . Use a Visual Workflow.B . Use a validation rule.C . Use the Process Automation Settings.D . Use a Trigger.View AnswerAnswer: B,D
Which three options can be accomplished with formula fields? (Choose three.)
Which three options can be accomplished with formula fields? (Choose three.)A . Generate a link using the HYPERLINK function to a specific record.B . Display the previous value for a field using the PRIORVALUE function.C . Determine if a datetime field value has passed using the NOW function.D . Return...
What are three valid Apex loop structures for iterating through items in the collection?
Given: Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]); What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)A . for (ID accountID : accountMap.keySet()) {…}B . for (Account accountRecord : accountMap.values()) {…}C . for (Integer i=0; I < accountMap.size();...
When is an Apex Trigger required instead of a Process Builder Process?
When is an Apex Trigger required instead of a Process Builder Process?A . When a record needs to be createdB . When multiple records related to the triggering record need to be updatedC . When a post to Chatter needs to be createdD . When an action needs to be...
What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)
What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)A . for (Account theAccount : AccountList) {…}B . for(AccountList) {…}C . for (List L : AccountList) {…}D . for (Integer i=0; i < AccountList.Size(); i++) {…}View AnswerAnswer: A,D
What is the result of the debug statement?
A developer writes the following code: What is the result of the debug statement?A . 1, 100B . 1, 150C . 2, 150D . 2, 200View AnswerAnswer: C