000-972 Questions And Answers
1.Which of the following operation codes is supported in both fixed form and /Free form?
A.CALL
B.EVALR
C.ALLOC
D.EXTRCT
Answer:B
2.Which of the following SQL statements, when used by itself in an RPG program, can take the place of a File Specification, a key and a CHAIN?
A.FETCH
B.SELECT INTO
C.DECLARE CURSOR
D.PREPARE STATEMENT
Answer:B
3.Given the following code sample, what value is displayed? D MyDS DS D FieldA 5A Inz('XXXXX') /free FieldA = 'VWXYZ'; Reset FieldA; Dsply ('FieldA=' + FieldA); *INLR = *On; BegSR *InzSR; FieldA = 'ABCDE'; EndSR;
A.FieldA=
B.FieldA=VWXYZ
C.FieldA=ABCDE
D.FieldA=XXXXX
Answer:C