nerdexam
Salesforce

PDII · Question #316

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

The correct answer is A. System.QuervException: List has more than one row for Assignment on Account. See the full explanation below for the reasoning.

Question

Given the following code:

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

Exhibit

PDII question #316 exhibit

Options

  • ASystem.QuervException: List has more than one row for Assignment on Account
  • BSystem.LimitException: Too many SOQL Queries on Contact
  • CSystem.QueryException: Too many DML Statement errors on Contact
  • DSystem.LimitException: Too many SOQL Queries on Account

How the community answered

(26 responses)
  • A
    85% (22)
  • C
    4% (1)
  • D
    12% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice