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_STUDENT_TBL and one non-effective-dated child record PSU_STUDENT_EXP.
The component interface PeopleCode was created by a developer and a snippet of that PeopleCode is as follows:
&oPsuStudentExpCollection = &oStuProfile2.PSU_STUDENT_EXP;
&item = &oPsuStudentExpCollection.ItemByKeys("PT");
If &item <> Null Then
&j = &item.ItemNum;
&oPsuStudentExp = &oPsuStudentExpCollection.Item(&j);
If &oPsuStudentExp.SKILL = "PT" And &oPsuStudentExp.PROFICIENCY = "L"
Then
&oPsuStudentExp.PROFICIENCY = "M";
End-If;
Else
&oPsuStudentExp = &oPsuStudentExpCollection.InsertItem(1);
&oPsuStudentExp.SKILL = "PT";
&oPsuStudentExp.PROFICIENCY = "M";
&oPsuStudentExp.DATE_LAST_MAINT = PSU_CRS_SESSN.END_DATE;
End-If;
Which statement best describes what this snippet of PeopleCode is trying to accomplish?
A. Inserts a child row and sets the SKILL, PROFICIENCY, and DATE_LAST_MAINT values, if SKILL is not equal to T
B. Insert a child row and sets the SKILL, PROFICIENCY, and DATE_LAST_MAINT values, if SKILL is equal to T
C. Inserts a child row and sets the SKILL, PROFICIENCY and DATE_LAST_MAINT values, if SKILL is equal to "PT" and PROFICENCY is equal to D. Modifies the PROFICIENCY of a child row if SKILL is T and PROFICIENCY is for that row
E. Modifies the value of PROFICIENCY of the child row in which SKILL is T and PROFCIENCY is , else if SKILL is not T inserts a child row and sets the SKILL, PROFICIENCY, and DATE_LAST_MAINT value

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.