최신IBM ILE RPG Programmer - 000-972무료샘플문제
문제1
Which of the following determine the activation group in which an ILE RPG program will run?
Which of the following determine the activation group in which an ILE RPG program will run?
정답: B
문제2
Given the following code sample: d x s 5i 0 d pr1 pr d p2 5p 0 value /free x += 5; pr1(x); dsply x; *inLr = *on; /end-free p pr1 b d pi d p2 5p 0 value /free p2 = p2 + 2; dsply p2; /end-free p pr1 e What are the values displayed by the program?
Given the following code sample: d x s 5i 0 d pr1 pr d p2 5p 0 value /free x += 5; pr1(x); dsply x; *inLr = *on; /end-free p pr1 b d pi d p2 5p 0 value /free p2 = p2 + 2; dsply p2; /end-free p pr1 e What are the values displayed by the program?
정답: D
문제3
If the record format of the file MyFile changes, which of the following programs will display the message "There is a problem with MyFile" as opposed to the program failing with the run time message "Error message CPF4131 appeared during OPEN for file MYFILE"?
If the record format of the file MyFile changes, which of the following programs will display the message "There is a problem with MyFile" as opposed to the program failing with the run time message "Error message CPF4131 appeared during OPEN for file MYFILE"?
정답: B
문제4
Given the following code:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++ d a s 10i 0
Inz(5)
d b s 10i 0 Inz(10)
d c S 10i 0 Inz(20)
/Free
if (b > a and c < b );
c = 1;
elseIf (a < b and a > c);
c = 2;
elseIf (a < b and c <> 20);
c = 3;
EndIf;
What is the value of the field C upon completion of the code?
Given the following code:
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++ d a s 10i 0
Inz(5)
d b s 10i 0 Inz(10)
d c S 10i 0 Inz(20)
/Free
if (b > a and c < b );
c = 1;
elseIf (a < b and a > c);
c = 2;
elseIf (a < b and c <> 20);
c = 3;
EndIf;
What is the value of the field C upon completion of the code?
정답: A
문제5
Which of the following operation codes can be used to call both programs and subprocedures?
Which of the following operation codes can be used to call both programs and subprocedures?
정답: D
문제6
In the example below, the elements of the Sales array are added to the TotalSales variable. Which
of the statements below can be used to replace the "For" loop?
FSalesFile IF E K Disk
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D SalesArr S 8S 2 DIM(12)
D TotalSales S 9S 2
D Mon S 2S 0
/Free
// Accumulate total sales for year
For Mon = 1 to 12;
TotalSales += SalesArr(Mon);
EndFor;
*inlr = *on;
/End-free
In the example below, the elements of the Sales array are added to the TotalSales variable. Which
of the statements below can be used to replace the "For" loop?
FSalesFile IF E K Disk
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++
D SalesArr S 8S 2 DIM(12)
D TotalSales S 9S 2
D Mon S 2S 0
/Free
// Accumulate total sales for year
For Mon = 1 to 12;
TotalSales += SalesArr(Mon);
EndFor;
*inlr = *on;
/End-free
정답: A
문제7
When creating a multiple module program which of the following statements is true?
When creating a multiple module program which of the following statements is true?
정답: D