How should a developer avoid hitting the governor limits in test methods?
Correct Answer:
D
A developer executes the following query in Apex to retrieve a list of contacts for each account:
List
Which two exceptions may occur when it executes? (Choose two.)
Correct Answer:
CD
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 150; x++)
{Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex)
{System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after
this code is run?
Correct Answer:
B
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
Correct Answer:
C
A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which
Correct Answer:
A