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 Rpg iv with ile (000-268) Free Practice Test

Question 1
Which of the following RPG constructs can be used to return the user ID of the user running the program?

Correct Answer: D
Question 2
Which of the following can be achieved by passing parameters by Value instead of by Reference?

Correct Answer: C
Question 3
An application needs to check for the following conditions: Amount due (AMTDUE) is greater than 1000 and either region code (RGNCODE) is 12 or credit limit (CRLIMIT) is greater than 1000. Which of the following code segments meets this requirement?

Correct Answer: C
Question 4
While stepping through a program in debug mode, a programmer discovers that after a CHAIN operation, it is necessary to press the step key multiple times before reaching the next executable instruction. Which of the following H specification keywords can be used to avoid generating these additional breakpoints?

Correct Answer: C
Question 5
Given the following expression:
SoldAmt + Dividends
TotalReturnPct = ( ---------------------- - 1 ) * 100
PaidAmt + Commissions
Which /free form expression below is correct?

Correct Answer: C
Question 6
The following commands were used to create programs PGMA, PGMB, PGMC and PGMD.
CRTPGM PGM(PGMA) MODULE(A) ACTGRP(ACCOUNTS)
CRTPGM PGM(PGMB) MODULE(B) ACTGRP(*CALLER)
CRTPGM PGM(PGMC) MODULE(C) ACTGRP(PAYROLL)
CRTPGM PGM(PGMD) MODULE(D) ACTGRP(*NEW)
Assume the following:
Program PGMA calls PGMB, which calls PGMC, which in turn calls PGMD.
All programs return with *INLR = *Off.
Upon returning to the command line from PGMA, the following command is entered:
RCLACTGRP ACCOUNTS Following the reclaim,
which program(s) remain in the job?

Correct Answer: C
Question 7
In An RPG program with embedded SQL, which of the following indicates that a FETCH statement was attempted, but the cursor was positioned after the last row of the result set?

Correct Answer: A
Question 8
Given the following code segment:
0001.00 D DateField S D DATFMT(*ISO)
0002.00 D CharField S 6A INZ('040696')
0003.00 C *MDY MOVE CharField DateField
This code will not compile. Which of the following changes will allow a successful compile?

Correct Answer: D
Question 9
Given the following code segment (Note that the field "Hours" is assumed to be defined in a database used by the program):
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++++++
+
D MonHrs DS D AverageHrs 4 2
D Employees 2 0
D TotalHours 7 2
C Eval Employees += 1
C Eval TotalHours = TotalHours + Hours
C Eval AverageHrs = TotalHours / Employees
An error occurs when executing this code. Which of the following would correct the error?

Correct Answer: B
Question 10
An employee works forty or more hours in a pay period. Assuming that overtime is paid for hours greater than 40 hours at a rate of time and a half, which EVAL statement will calculate the gross pay (GPay)?

Correct Answer: B