Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

IBM ILE RPG Programmer (000-972) Free Practice Test

Question 1
The DDS for a subfile control record includes the following lines:
AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions+++++++++++++++++++ A
PAGEDOWN(03) PAGEUP(04)
A 10 CSRLOC(@ROW @COL)
A 08 SFLEND
A SFLSIZ(0028) SFLPAG(0014)
Fourteen records are in the subfile and the program is waiting at the EXFMT of the subfile control
record. In addition to Indicator 03 being *ON when the user presses the Page Down key, which of
the following statements will also be true?

Correct Answer: D
Question 2
A programmer has just converted a subroutine to a subprocedure. When compiling the program with the CRTBNDRPG command, the compiler reports the following error:
RNF3788 Keyword EXTPGM must be specified when DFTACTGRP(*YES) is specified on the
CRTBNDRPG command.
Which of the following keywords on an H spec in the program will resolve this error?

Correct Answer: B
Question 3
Orders are accepted under the following conditions:
Orders from Government (government) organizations are always accepted.
The order amount (orderAmt) does not exceed the individual order limit (limit)
The order does not cause the customer's balance (custBalance) to exceed their credit limit
(custCrLimit).
Which of the following expressions correctly enforces these conditions?

Correct Answer: C
Question 4
Given the following code sample:
d a S 5i 0
d b S 5i 0 Inz(10)
d c S 5i 0
/Free
*InLR = *On;
a = b/c;
if %error;
dsply 'There was a divide error';
EndIf;
dsply 'The divide worked!';
BegSR *PSSR;
Dsply 'Bad things happened in the program';
Return; EndSr;
Which of the following is the first message displayed when the program is called?

Correct Answer: D
Question 5
An RPG program calls procedures named ValidateCust and GetCustInf which reside in a Service Program called CustProcs. The same program also calls a procedure named CenterField which resides in a Service Program called Utility. When creating this program, which of the following Binding Directory entries could be used to allow creation of the program with the CRTBNDRPG command?

Correct Answer: D
Question 6
Which of the following built-in functions may be used on either side of an assignment expression?

Correct Answer: C
Question 7
Given the following code sample: DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++++ d CustPrice pr 9 3 d Company 3 0 const d Item 20 d Contract 10 options(*omit) d Quantity 7 0 options(*nopass) d MyPrice s 9 3 d MyCompany s 3 0 d MyItem s 20 d MyContract s 10 d MyQty s 7 0 Which of the following is a valid expression?

Correct Answer: C