IBM Developing with IBM Enterprise PL/I - C9050-042 Exam Practice Test
Lt there is a direct read access to a data object with a unique key (e.g., DB2-SELECT, IMS-GU, ...),
which of the following return codes is possible?
which of the following return codes is possible?
Correct Answer: D
Given the following code, which is the only valid way to convert Q to P?
DCL Q OFFSET;
DCL P POINTER;
DCLX CHAR(100)BASED;
DCL A AREA(6000);
ALLOC X SET(Q) IN(A);
DCL Q OFFSET;
DCL P POINTER;
DCLX CHAR(100)BASED;
DCL A AREA(6000);
ALLOC X SET(Q) IN(A);
Correct Answer: D
What would the attribute table in a compile list be used for when looking at the variable in a dump?
Correct Answer: D
Which of the following best describes an atomic transaction?
Correct Answer: D
Given the following code, which call will pass a dummy argument?
PROG: PROC OPTIONS(MAIN);
DCL SUM01 DEC FIXED(5,0) INIT (7);
DCL SUM02 DEC FIXED(9,0) INIT (999);
CALL SUBA(SUM01,
SUM02);
CALL SUSB(SUM01,
SUM02);
CALL SUBC(SUM01,
SUM02);
CALL SUBD(SUM01,
SUM02);
SUBA PROC( PRM1,
PRM2);
DCL PRM1 DEC FIXED (5,0) BYVALUE,
PRM2 DEC FIXED (9,0);
END SUBA;
SUBB:PROC( PRM1,
PRM2);
DCL PRM1 DEC FIXED (5,0),
PRM2 DEC FIXED (9,0);
END SUBD;
SUBC: PROC( PRM 1,
PRM2);
DCL PRM1 BIN FIXED (15,0),
PRM2 DEC FIXED (9,0);
END SUBC;
SUBD:PROC( PRM 1,
PRM2);
DCL PRM1 DEC FIXED(5,0) BYADDR,
PRM2 DEC FIXED (9,0) SYADDP;
END SUBD;
END PROG;
PROG: PROC OPTIONS(MAIN);
DCL SUM01 DEC FIXED(5,0) INIT (7);
DCL SUM02 DEC FIXED(9,0) INIT (999);
CALL SUBA(SUM01,
SUM02);
CALL SUSB(SUM01,
SUM02);
CALL SUBC(SUM01,
SUM02);
CALL SUBD(SUM01,
SUM02);
SUBA PROC( PRM1,
PRM2);
DCL PRM1 DEC FIXED (5,0) BYVALUE,
PRM2 DEC FIXED (9,0);
END SUBA;
SUBB:PROC( PRM1,
PRM2);
DCL PRM1 DEC FIXED (5,0),
PRM2 DEC FIXED (9,0);
END SUBD;
SUBC: PROC( PRM 1,
PRM2);
DCL PRM1 BIN FIXED (15,0),
PRM2 DEC FIXED (9,0);
END SUBC;
SUBD:PROC( PRM 1,
PRM2);
DCL PRM1 DEC FIXED(5,0) BYADDR,
PRM2 DEC FIXED (9,0) SYADDP;
END SUBD;
END PROG;
Correct Answer: C
What is a program specification document?
Correct Answer: D
A mainframe project is behind schedule and a project leader has only one copy of a PC-based PL/I
compiler available for distribution to team members who are all eager to use it. Optimally, to whom should
it be provided first?
compiler available for distribution to team members who are all eager to use it. Optimally, to whom should
it be provided first?
Correct Answer: B
Program A calls program B with PC as a parameter defined BIN FIXED (31 .0). Program B sets PC as
follows:
0 OK
4 WARNING
8 ERROR
Which of the following is the most appropriate statement for testing the PC variable?
follows:
0 OK
4 WARNING
8 ERROR
Which of the following is the most appropriate statement for testing the PC variable?
Correct Answer: D
Given the following declarations, a list of 100 elements must be created so that the element created last
can be accessed as the first element of the list. A new element is always inserted in front of the element
created before. The variable NEXT in the last element should contain the value NULL. Which of the
following pieces of code implements this?
DCL 1 NODE BASED (ANCHOR).
2 NEXT POINTER,
2 DATA FIXED BIN(31);
DCL ANCHOR POINTER;
DCL P POINTER INIT (NULL());
DCL I FIXED BIN(31);
can be accessed as the first element of the list. A new element is always inserted in front of the element
created before. The variable NEXT in the last element should contain the value NULL. Which of the
following pieces of code implements this?
DCL 1 NODE BASED (ANCHOR).
2 NEXT POINTER,
2 DATA FIXED BIN(31);
DCL ANCHOR POINTER;
DCL P POINTER INIT (NULL());
DCL I FIXED BIN(31);
Correct Answer: D
Which of the following is LEAST likely to be performed by a batch program?
Correct Answer: D