Free DEX-450 Exam Braindumps (page: 8)

Page 7 of 115

A developer writes the following code:



What is the result of the debug statement?

  1. 1, 100
  2. 1, 150
  3. 2, 150
  4. 2, 200

Answer(s): C



What are two valid options for iterating through each Account in the collection List<Account> named AccountList? (Choose two.)

  1. for (Account theAccount : AccountList) {...}
  2. for(AccountList) {...}
  3. for (List L : AccountList) {...}
  4. for (Integer i=0; i < AccountList.Size(); i++) {...}

Answer(s): A,D



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.)

  1. for (ID accountID : accountMap.keySet()) {...}
  2. for (Account accountRecord : accountMap.values()) {...}
  3. for (Integer i=0; I < accountMap.size(); i++) {...}
  4. for (ID accountID : accountMap) {...}
  5. for (Account accountRecord : accountMap.keySet()) {...}

Answer(s): A,B,C



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.)

  1. Use a Visual Workflow.
  2. Use a validation rule.
  3. Use the Process Automation Settings.
  4. Use a Trigger.

Answer(s): B,D






Post your Comments and Discuss Salesforce DEX-450 exam with other Community members:

DEX-450 Discussions & Posts