시험번호: 1Z0-242
시험이름: PeopleSoft Application Developer II: App Engine & Integration
Q&A: 100 Q&As
업그레이트: Jan-15-2010
시험문제:
Q&A: 100 Q&As
업그레이트: Jan-15-2010
시험문제:
1. Evaluate this PeopleCode snippet.
Local Array of Number &MyArray;
Local Any &Len, &Result;
&MyArray = CreateArray(3);
&MyArray[1] = 100;
&MyArray[2] = 200;
&MyArray[3] = 300;
&Result = &MyArray.POP();
&Len = &MyArray.LEN;
&End = &MyArray[&Len];
What are the correct values for &Result and &End?
A. &Result is 300
&End is 200
B. &Result is 300
&End is Null
C. &Result is 300
&End is 300
D. &Result is Null
&End is 300
E. &Result is 100
&End is 300
Answer: A
2. Here is a snippet of PeopleCode that uses the Fetch method of the SQL class.
&SQL = CreateSQL("Select EFFORT_AMT from PS_PSU_TASK_EFFORT where TASK= :1",
PSU_TASK_TBL.TASK);
&Var1 = &SQL.Fetch(&Var2);
Select the two correct statements. (Choose two.)
A. &Var2 specifies which row to fetch.
B. &Var2 specifies which field to fetch.
C. &Var1 is populated with TRUE if a row is fetched.
D. &Var1 is populated with the number of rows returned.
E. &Var2 is populated with EFFORT_AMT from the row fetched.
F. &Var1 is populated with EFFORT_AMT from the row fetched.
G. &Var1 is populated with EFFORT_AMT from the first row returned.
Answer: CE
3. View the Exhibit.
Local Array of Number &MyArray;
Local Any &Len, &Result;
&MyArray = CreateArray(3);
&MyArray[1] = 100;
&MyArray[2] = 200;
&MyArray[3] = 300;
&Result = &MyArray.POP();
&Len = &MyArray.LEN;
&End = &MyArray[&Len];
What are the correct values for &Result and &End?
A. &Result is 300
&End is 200
B. &Result is 300
&End is Null
C. &Result is 300
&End is 300
D. &Result is Null
&End is 300
E. &Result is 100
&End is 300
Answer: A
2. Here is a snippet of PeopleCode that uses the Fetch method of the SQL class.
&SQL = CreateSQL("Select EFFORT_AMT from PS_PSU_TASK_EFFORT where TASK= :1",
PSU_TASK_TBL.TASK);
&Var1 = &SQL.Fetch(&Var2);
Select the two correct statements. (Choose two.)
A. &Var2 specifies which row to fetch.
B. &Var2 specifies which field to fetch.
C. &Var1 is populated with TRUE if a row is fetched.
D. &Var1 is populated with the number of rows returned.
E. &Var2 is populated with EFFORT_AMT from the row fetched.
F. &Var1 is populated with EFFORT_AMT from the row fetched.
G. &Var1 is populated with EFFORT_AMT from the first row returned.
Answer: CE
3. View the Exhibit.

An object-oriented PeopleCode program traverses the data buffer to get the value for Session Number
(SESSION_NBR) in the Session Details record (PSU_CRS_SESSN) on the Course Sessions page.
The program uses a built-in function to instantiate the Level 0 object, then uses object methods to
instantiate the remaining data buffer objects.
Select the option that represents the order in which the program instantiates the data buffer objects.
A. &Row_Level0, &Row _Level1, &Record, &Field
B. &Rowset_Level0, &Row_Level1, &Record, &Field
C. &Rowset_Level0, &Rowset_Level1, &Row_Level1, &Record, &Field
D. &Rowset_Level0, &Row _Level0, &Rowset_Level1, &Row _Level1, &Record, &Field
Answer: D
4. The Customer Orders page uses data from the ITEM table to perform price calculations. You decide to
write a PeopleCode program to create a stand-alone rowset that will load data from the ITEM table into
the data buffer. Select three PeopleCode statements that can be used with stand-alone rowsets. (Choose
three.)
A. &RS_Item = GetRowSet(SCROLL.ITEM);
B. &RS_Item = CreateRowSet(RECORD.ITEM);
C. &Price = &RS_Item(&i).ITEM.PRICE.Value;
D. &RS_Item.Select("Where ITEM = :1", CUST_ORDER.ITEM);
E. &RS_Item.Fill("Where CUST_TYPE = :1", CUST_ORDER.TYPE);
F. &RS_Item = ScrollSelect(1,Scroll.ITEM, Record.ITEM, ("Where CUST_TYPE = :1", CUST_ORDER.
CUST_TYPE);
Answer: BCE
5. View the Exhibit.

On the Employee Review page, you have a business rule with these requirements:
1. If Review Type is Supervisor, then the prompt for Reviewer ID returns only supervisors.
2. If Review Type is Peer or Performance, then the prompt for Reviewer ID returns all employees.
Select the three steps required to implement this business rule. (Choose three.)
A. Associate the REVIEWER_ID field with REVIEWER_VW.
B. Create REVIEWER_VW as a dynamic view of the EMPLOYEE table.
C. Add the DERIVED.EDITTABLE field to the page and make it invisible.
D. Set the prompt table edit for the REVIEWER_ID field to REVIEWER_VW.
E. Set the prompt table edit for the REVIEWER_ID field to DERIVED.%EDITTABLE.
F. Use a SQL Select statement in PeopleCode to populate the REVIEWER_VW view.
G. Use a conditional statement in PeopleCode to populate the DERIVED.EDITTABLE field.
Answer: CEG