問題1
What system API can be used to place a message in a subfile program message queue from within an RPG program?
What system API can be used to place a message in a subfile program message queue from within an RPG program?
正確答案: D
問題2
CL program PGMA, issues an OPNQRYF statement and then calls RPG program PGMB to process the results of the OPNQRYF. This combination was working until PGMB was recreated to run in a different Activation Group from PGMA. Now PGMB does not see the results of the OPNQRYF statement. Which of the following parameters added to the OPNQRYF statement would allow PGMB to see the correct OPNQRYF results again?
CL program PGMA, issues an OPNQRYF statement and then calls RPG program PGMB to process the results of the OPNQRYF. This combination was working until PGMB was recreated to run in a different Activation Group from PGMA. Now PGMB does not see the results of the OPNQRYF statement. Which of the following parameters added to the OPNQRYF statement would allow PGMB to see the correct OPNQRYF results again?
正確答案: C
問題3
Given the following code segment:
FFilename++IPEASF.....L.....A.Device+.Keywords++++++++++++++++++++++++
FCustMast IF E K Disk UsrOpn
CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result+++++++Len++D+HiLoEq
C CustKey ReadE(E) CustMast
Which of the following will cause %Error to be set on when the Read is run?
Given the following code segment:
FFilename++IPEASF.....L.....A.Device+.Keywords++++++++++++++++++++++++
FCustMast IF E K Disk UsrOpn
CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result+++++++Len++D+HiLoEq
C CustKey ReadE(E) CustMast
Which of the following will cause %Error to be set on when the Read is run?
正確答案: A
問題4
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)?
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)?
正確答案: D
問題5
What is the following code accomplishing? Eval X = X**MONTH
What is the following code accomplishing? Eval X = X**MONTH
正確答案: C
問題6
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?
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?
正確答案: B
問題7
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?
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?
正確答案: C
問題8
Procedure PROC1 in a Service Program must be called passing to it a 5 position field.
Which of the following code segments will accomplish this task?
Procedure PROC1 in a Service Program must be called passing to it a 5 position field.
Which of the following code segments will accomplish this task?
正確答案: D
問題9
What is the purpose of a procedure prototype in a calling program?
What is the purpose of a procedure prototype in a calling program?
正確答案: A
問題10
A Service Program was originally created with the following binder language:
STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL('A')
EXPORT SYMBOL('B')
ENDPGMEXP
Module C is to be added to the Service Program. It is a NOMAIN module containing two subpocedures - X and Y.
Which of the following binder sources could be used to ensure that existing programs which use this service program, continue to work correctly without being recreated or updated?
A Service Program was originally created with the following binder language:
STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL('A')
EXPORT SYMBOL('B')
ENDPGMEXP
Module C is to be added to the Service Program. It is a NOMAIN module containing two subpocedures - X and Y.
Which of the following binder sources could be used to ensure that existing programs which use this service program, continue to work correctly without being recreated or updated?
正確答案: A