Which statement best describes what this snippet of PeopleCode is trying to accomplish?

You created a component interface based on a component that has a parent PSU_CRS_SESSN and one
non-effective-dated child record PSU_STU_ENROLL.
The component interface PeopleCode was created by a developer and a snippet of that PeopleCode is as follows:
&oPsuStuEnrollCollection = &oPsuCrsEnroll.PSU_STU_ENROLL;
For &i = 1 To &oPsuStuEnrollCollection.Count
&oPsuStuEnroll = &oPsuStuEnrollCollection.Item(&i);
If &oPsuStuEnroll.ENROLL_STATUS = "ENR" then
&oPsuStuEnroll.ENROLL_STATUS = "RES";
End-if
End-For;
Which statement best describes what this snippet of PeopleCode is trying to accomplish?
A. Inserts a child row if ENROLL_STATUS = ENR
B. Modifies each child row in which ENROLL_STATUS =ENR
C. Inserts a child row if any row has ENROLL_STATUS = ENR
D. Modifies each child row if any row has ENROLL_STATUS = ENR

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.