Question 116
A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of "1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time an account record is created or updated. The following trigger is defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){ for (Account accountInstance: Trigger.New){ if (Trigger
. isBefore){ accountInstance Exec_Count_c += 1; } System. debug
(accountInstance.Exec_Count_c); } }
Question 117
Choose the correct definition for <apex:actionPoller>.
Question 118

Consider the above trigger intended to assign the Account to the manager of the Account''s region. Which two changes should a developer make in this trigger to adhere to best practices? Choose 2 answers
Question 119
A developer has created the following trigger: trigger ProcessDoNotCall on Contact (after update) { List<Contact> lstCon = [SELECT Id, DoNotCall, Department FROM Contact WHERE Department = 'HR' AND Id IN :Trigger.new]; for(Contact c : lstCon) c.DoNotCall= true; update lstCon; } The developer executes the following code anonymously in the Developer Console. Assume that the record exists in Salesforce.
Contact con = new Contact(Id='003oOOOOOOVHXOm',Department = 'HR') update con; Which behavior will the developer observe?
Question 120
@isTest static void testAccountUpdate() { Account acct = new Account({Name = 'Test'); acct.Integration Updated_c = false; insert acct; CalloutUtil.sendAccountUpdate (acct.Id); Account acctAfter = [SELECT Id, Integration Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAfter.Integration_Updated_c); } The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated__c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts." What is the optimal way to fix this?
