nerdexam
Salesforce

PDII · Question #168

If you have a method "doStuff(List<sObject> records)", which is a valid call?

The correct answer is A. doStuff([Select Id From Account]). See the full explanation below for the reasoning.

Question

If you have a method "doStuff(List<sObject> records)", which is a valid call?

Options

  • AdoStuff([Select Id From Account]);
  • BdoStuff(List<Account> records);
  • CdoStuff(Account acct);
  • DdoStuff(sObject obj);

How the community answered

(25 responses)
  • A
    72% (18)
  • B
    4% (1)
  • C
    16% (4)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full PDII Practice