nerdexam
SalesforceSalesforce

PDI · Question #181

PDI Question #181: Real Exam Question with Answer & Explanation

Sign in or unlock PDI to reveal the answer and full explanation for question #181. The question stem and answer options stay visible for context.

Submitted by luis.pe· Apr 18, 2026Logic and Process Automation

Question

Given the following Apex statement: What occurs when more than one Account is returned by the SOQL query?

Options

  • AThe query falls and an error Is written to the debug log.
  • BThe variable, nvAccount, Is automatically cast to the List data type.
  • CThe first Account returned Is assigned to myAccour.t.
  • DAn unhandled exception is thrown and the code terminates.

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Apex SOQL#Exception Handling#QueryException#Data Retrieval
Full PDI PracticeBrowse All PDI Questions