Exam PDI Topic 3 Question 164 Discussion
Actual exam question for Salesforce's PDI exam
Question #: 164
Topic #: 3
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?
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
:Apex Control Statements
by Kirk at Sep 19, 2026, 11:37 PM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).