00:00

QUESTION 26

How should a developer avoid hitting the governor limits in test methods?

Correct Answer: D

QUESTION 27

A developer executes the following query in Apex to retrieve a list of contacts for each account:
List accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;
Which two exceptions may occur when it executes? (Choose two.)

Correct Answer: CD

QUESTION 28

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

QUESTION 29

Which standard field needs to be populated when a developer inserts new Contact records programmatically?

Correct Answer: C

QUESTION 30

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 attribute(s) to correctly implement controller functionality?

Correct Answer: A