IBM Developing with IBM Enterprise PL/I - C9050-042 Exam Practice Test
In which of the following cases is a performance analyzer tool NOT useful?
Correct Answer: D
Vote an answer
In which of the following groups of compiler options could all the options specified cause the compiler to
generate code which requires more time at execution?
generate code which requires more time at execution?
Correct Answer: B
Vote an answer
Which of the following compile list sections would be used to find the location of a static variable in a
dump?
dump?
Correct Answer: B
Vote an answer
Given the following declarations, which code is likely to perform best and correctly initialize structure 3?
DCL 1 S UNALIGNED, 2 A CHAR(3), 2 B BIN FIXED(31), 2 C DEC FIXED(5); DCL 1 T UNALIGNED
LIKE S; T = ";
DCL 1 S UNALIGNED, 2 A CHAR(3), 2 B BIN FIXED(31), 2 C DEC FIXED(5); DCL 1 T UNALIGNED
LIKE S; T = ";
Correct Answer: A
Vote an answer
Given the following code example, what is the value of A after the last CALL to ADD_RUT?
PGM2: PROC OPTIONS(MAIN,REENTRANT) REORDER;
DCL A BIN FIXED (15);
A =1
CALL ADD_RUT(A);
CALL ADD_RUT(A);
CALL ADD_RUT(A);
ADD_RUT:PROC (VAL);
DCL VAL DEC FIXED (15);
VAL = VAL + 1;
END ADD_RUT;
END PGM2;
PGM2: PROC OPTIONS(MAIN,REENTRANT) REORDER;
DCL A BIN FIXED (15);
A =1
CALL ADD_RUT(A);
CALL ADD_RUT(A);
CALL ADD_RUT(A);
ADD_RUT:PROC (VAL);
DCL VAL DEC FIXED (15);
VAL = VAL + 1;
END ADD_RUT;
END PGM2;
Correct Answer: D
Vote an answer
Which of the following would a non-technical manager be LEAST interested in regarding migration to
Enterprise PL/I?
Enterprise PL/I?
Correct Answer: C
Vote an answer
Given the following code, what measure will NOT improve stability?
S1: PROC (X,Y,Z);
DCL X DEC FIXED (5);
DCL Y PlC '99999';
DCL Z DEC FIXED (5);
Z = X + Y;
END;
S1: PROC (X,Y,Z);
DCL X DEC FIXED (5);
DCL Y PlC '99999';
DCL Z DEC FIXED (5);
Z = X + Y;
END;
Correct Answer: C
Vote an answer
Given the following code:
DCL INDATA FILE RECORD INPUT;
DCL INSTRUC CHAR(100);
DCL EOF BIT(1) INIT('0'B);
ON ENDFILE(INDATA) EOF = '1'B;
OPEN FILE(INDATA);
READ FILE(INDATA) INTO(INSTRUC);
DO WHILE (^EOF);
CALL SR_PROCESS;
READ FILE(INDATA) INTO(INSTRUC);
END;
CLOSE FILE(INDATA);
If the database (input file) changes from OS-PS to DB2 view and the necessary syntax has been changed
accordingly, which of the following DB2-related steps is NOT additionally required to guarantee the same
level of stability and functionality?
DCL INDATA FILE RECORD INPUT;
DCL INSTRUC CHAR(100);
DCL EOF BIT(1) INIT('0'B);
ON ENDFILE(INDATA) EOF = '1'B;
OPEN FILE(INDATA);
READ FILE(INDATA) INTO(INSTRUC);
DO WHILE (^EOF);
CALL SR_PROCESS;
READ FILE(INDATA) INTO(INSTRUC);
END;
CLOSE FILE(INDATA);
If the database (input file) changes from OS-PS to DB2 view and the necessary syntax has been changed
accordingly, which of the following DB2-related steps is NOT additionally required to guarantee the same
level of stability and functionality?
Correct Answer: B
Vote an answer