Exam CRT-450 All QuestionsBrowse all questions from this exam
Question 272

A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes.

The following code is executed in the Developer Console using the Execute Anonymous window:

How many total accounts will be in the org after this code is executed?

    Correct Answer: B

    The code only inserts one account, 'MyAccount,' into the database initially. The loop creates 10 new accounts and adds them to a list, but it does not insert these new accounts into the database because there is no insert statement after the while loop. Therefore, only the one newly inserted account along with the five existing accounts will be in the org, totaling six accounts.

Discussion
adamadamadamadamadamOption: B

theres no insert after while, it should be 5 old and 1 new in total. i cant believe i payed for this exams with so many wrong answers............

FungFamOption: B

I think it should be B