B is not correct, normally there will be a compile error ERROR: Cannot modify a collection while it is being iterated. (FOR i loop could compile but out of index error eventually)
D is correct even though the SOQL query in a loop is not the best practice but it can be complied properly
"D is correct even though the SOQL query in a loop is not the best practice but it can be complied properly": it would be the same also for A then...
upvoted 2 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
BeatrizBernardo
Highly Voted 1 year, 5 months agoABHI0O07
Most Recent 8 months agoedogaldo
1 year, 2 months agode2rick
1 year, 6 months agosfarchex137
1 year, 2 months agoedogaldo
1 year, 2 months ago