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 Dumps Valid Version with 456 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments