Exam PDI Topic 3 Question 164 Discussion

Actual exam question for Salesforce's PDI exam
Question #: 164
Topic #: 3
A developer wants to mark each Account in a List<Account> as either Active or Inactive, based on the value in the LastModified each Account being greater than 90 days in the past.
Which Apex technique should the developer use?

Suggested Answer: C Vote an answer

* Using aforloop allows iterating through the list, and aniforif-elsecondition inside can evaluate theLastModifiedDatefor each account to determine its status.
:Apex Control Statements

by Kirk at Sep 19, 2026, 11:37 PM

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