Exam Plat-Dev-301 Topic 1 Question 1 Discussion

Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 1
Topic #: 1
Given the following code:

Assuming there were 10 Contacts and five Accounts created today, what is the expected result?

Suggested Answer: B Vote an answer

The loop contains a SOQL query inside, causing it to run multiple times. This will throw a QueryException because the Account query returns more than one row.

by Caroline at Jul 22, 2026, 08:18 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
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.

0
0
0
10