最新的IBM Rpg iv with ile - 000-268免費考試真題
Given the following code segment, what value will be displayed as a result of the last statement?
D DayNamesData DS
D 9 INZ('Saturday')
D 9 INZ('Sunday')
D 9 INZ('Monday')
D 9 INZ('Tuesday')
D 9 INZ('Wednesday')
D 9 INZ('Thursday')
D 9 INZ('Friday')
D 9 INZ('Saturday')
D 9 INZ('Sunday')
D pDayNames S * INZ(%Addr(DayNamesData))
D DayName S 9 DIM(7) BASED(pDayNames)
/Free
Eval pDayNames = %Addr(DayName(2));
Dsply DayName(3); // Display name of day 3
D DayNamesData DS
D 9 INZ('Saturday')
D 9 INZ('Sunday')
D 9 INZ('Monday')
D 9 INZ('Tuesday')
D 9 INZ('Wednesday')
D 9 INZ('Thursday')
D 9 INZ('Friday')
D 9 INZ('Saturday')
D 9 INZ('Sunday')
D pDayNames S * INZ(%Addr(DayNamesData))
D DayName S 9 DIM(7) BASED(pDayNames)
/Free
Eval pDayNames = %Addr(DayName(2));
Dsply DayName(3); // Display name of day 3
正確答案: B
Given the following code segment:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D Arra s 3s 0 DIM(10)
D Index s 2s 0 Inz(0)
/FREE
For Index = 1 to %Elem(Arra);
Arra(Index) = 2 * Index;
EndFor; /END-FREE
What is the value of field Index after the code is run?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D Arra s 3s 0 DIM(10)
D Index s 2s 0 Inz(0)
/FREE
For Index = 1 to %Elem(Arra);
Arra(Index) = 2 * Index;
EndFor; /END-FREE
What is the value of field Index after the code is run?
正確答案: A
The following code segment is part of an existing program:
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result+++++++Len++D+HiLoEq
C If C = D
C Eval *IN50 = *off
C EndIf
Which of the following produces equivalent results under ALL possible conditions?
C*0N01Factor1+++++++Opcode(E)+Factor2+++++++Result+++++++Len++D+HiLoEq
C If C = D
C Eval *IN50 = *off
C EndIf
Which of the following produces equivalent results under ALL possible conditions?
正確答案: B
Given the following code segment:
CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq C CODE CASEQ 1 SRONE C CODE CASEQ 2 SRTWO C CAS SRTHREE C END Which of the following code segments will perform the equivalent function?
CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq C CODE CASEQ 1 SRONE C CODE CASEQ 2 SRTWO C CAS SRTHREE C END Which of the following code segments will perform the equivalent function?
正確答案: D
Given the following code segment:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++
D GetBalDue PR
D Balance 11P 2
D CustNo 5S 0
D Qty 7P 0
D Amount 5P 2
D Balance S 11P 2
D CustNo S 5S 0
D OrdQty S 7P 0
D Amt S 5P 2
Which of the following contains correct syntax?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++
D GetBalDue PR
D Balance 11P 2
D CustNo 5S 0
D Qty 7P 0
D Amount 5P 2
D Balance S 11P 2
D CustNo S 5S 0
D OrdQty S 7P 0
D Amt S 5P 2
Which of the following contains correct syntax?
正確答案: D
Given the following code segment:
d GetAcctBal pr 11 2
d AcctNum 7 0
d Year 4s 0
d Period 2s 0
The identifiers AcctNum, Year and Period are used for what purpose?
d GetAcctBal pr 11 2
d AcctNum 7 0
d Year 4s 0
d Period 2s 0
The identifiers AcctNum, Year and Period are used for what purpose?
正確答案: B
Given the following code segment:
d CusInfo ds dim(10) qualified
d CusNum 5 0
d AmtDue 7 2
d OrdYTD 7 2
d OrdPrv 7 2
How would the AmtDue subfield for the 5th element of the CusInfo array be referenced?
d CusInfo ds dim(10) qualified
d CusNum 5 0
d AmtDue 7 2
d OrdYTD 7 2
d OrdPrv 7 2
How would the AmtDue subfield for the 5th element of the CusInfo array be referenced?
正確答案: D
Review the following sample subfile:
+----------------------+
| Option Data |
| ------ --------- |
| | | Record 1 |
| | | Record 2 |
| |X| Record 3 |
| | | Record 4 |
+----------------------+
The SFLNXTCHG keyword was inactive when Record 1 was written and active when each subsequent subfile record was written. The operator has entered the "X" in the option field for Record 3. Which subfile record will be read when the next READC operation is performed on the subfile?
+----------------------+
| Option Data |
| ------ --------- |
| | | Record 1 |
| | | Record 2 |
| |X| Record 3 |
| | | Record 4 |
+----------------------+
The SFLNXTCHG keyword was inactive when Record 1 was written and active when each subsequent subfile record was written. The operator has entered the "X" in the option field for Record 3. Which subfile record will be read when the next READC operation is performed on the subfile?
正確答案: C
What is the purpose of a procedure prototype in a calling program?
正確答案: D
Given the following code segment:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D Arr s 15a DIM(5) INZ
D Index s 2s 0 Inz(0)
/FREE
arr(1) = 'RPG is Cool';
arr(2) = ' RPG is Cool';
arr(3) = ' RPG is Cool';
arr(4) = ' RPG is Cool';
Index = %LookUp(*blank: arr: 1: 2);
/END-FREE
What is the value of field Index after the code is run?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D Arr s 15a DIM(5) INZ
D Index s 2s 0 Inz(0)
/FREE
arr(1) = 'RPG is Cool';
arr(2) = ' RPG is Cool';
arr(3) = ' RPG is Cool';
arr(4) = ' RPG is Cool';
Index = %LookUp(*blank: arr: 1: 2);
/END-FREE
What is the value of field Index after the code is run?
正確答案: D