CRT-450 Exam QuestionsBrowse all questions from this exam

CRT-450 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?

Show Answer
Correct Answer: B,D

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

2 comments
Sign in to comment
FungFamOption: B
Jul 10, 2024

I think it should be B

adamadamadamadamadamOption: B
Jul 18, 2024

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