How many accounts are in the org after this code is run?
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?
A . 101
B . 100
C . 102
D . 252
Answer: B
Latest DEX-450 Practice Questions with 456 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments