Given the following code, what will happen?
DCL(K, L) FIXED DEC (1);
K= 1;
L = 2;
PUT SKIP LIST (12+K/L);
A. The outputis 12.5.
B. The program ends abnormally at runtime.
C. The resulting value is 6.5.
D. The output is 12.4999999999999.
Given the following declaration for X:
DCLX FIXED DEC (3) INIT (123);
If Y is declared as CHAR, what should its minimum length be to preserve the value 123 if these statements
are executed?
Y = X;
X =Y;
A. 3
B. 4
C. 5
D. 6
What happens after executing the following code?
DCL OUTFILE FILE RECORD OUTPUT;
DCLP PTR;
DCL I BIN FIXED(31);
DCL A BIN FIXED(31) BASED(P);
DO I = 1 TO 10;
LOCATE A FILE(OUTFILE) SET(P);
A = I;
END;
CLOSE FILE(OUTFILE);
A. 10 records will be written with value 1 to 10.
B. 10 records will be written with first record value undefined.
C. 9 records will be written with value 1 to 9.
D. 9 records will be written with value 2 to 10.
If the PROC name is less than 8 characters, what ENTRY point should be specified for a PL/I routine which will be FETCHed?
A. PLISTART
B. CEESTART L
C. The PROC name
D. The PROC name followed by a `1'
Given the lollowing declarations, what statement will raise STRINGSIZE condition if enabled? DCLA_STR
CHAR (100) VARYING;
DCLB_STR CHAR(10) STATIC;
DCL C_STR CHAR (100);
A. A_STR = B_STR;
B. C_STR = B_STR;
C. SUBSTR(C_STR, 92) = B_STR;
D. C_STR = A_STR;
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;
A. Call to SUBA
B. CaII to SUBB
C. CaII to SUBC
D. CaII to SUBD
Which of the following runtime options should be reviewed when attempting to improve performance in a PL/I program?
A. DEPTCONDLMT, INFOMSGFILTER, MSGFILE and RPTOPTS
B. TRACE, TRAP, CHECK and DEBUG
C. ALL31, STORAGE, HEAP and STACK
D. ERRCOUNT, LIBSTACK, HEAPPOOLS and XPLINK
Given the following pseudocode inside a loop, where should the COMMIT action be placed assuming that there is always a one-to-many relationship between header and detail tables? 1 Find header row 2 IF found 3 Update header row 4 Find detail row 5 IF found THEN 6 Update detail rows 7 ELSE 8 ENDIF 9 ENDIF
A. Afterline 3
B. Afterline 6
C. Afterline 8
D. After lines 3, 8, and 9
Requirement Copy a dataset of record length 100 to another dataset.
If the following code does not fulfill the requirement above, which is the most likely reason? DCL DDIN
FILE RECORD INPUT;
DCL DDOUT FILE RECORD OUTPUT;
DCL INSTRUC CHAR(100);
DCL EOF_IN BIT(1) INIT('0'B);
ON ENDFILE(DDIN) EOF_IN = `1'B;
READ FILE(DDIN) INTO(INSTRUC);
DO WHlLE(^EOF_IN);
WRITE FILE(DDOUT) FROM(INSTRUC);
READ FILE(DDIN) INTO(INSTRUC);
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
A. The code does not fulfill the requirement because too many records will be written to the output dataset, except when the input dataset is empty.
B. The code does notfulfill the requirement because the input structure is the same as the outputstructure.
C. The code does notfulfill the requirement because the OPEN statements are missing.
D. The code fulfills the requirement.
Given the following statements, where will the variables A, B and C be allocated?
DCL A FIXED;
DCL B CHAR(80) BASED(P);
DCL C CHAR(1000) CONTROLLED;
DCL D AREA(1000);
DCL P PTR STATIC;
ALLOC C;
ALLOC B IN(D);
A. A in STACK, B and C are in HEAP
B. A in HEAP, Band C are in STACK
C. A and B are in STACK, C in HEAP
D. A in STACK, B in STATIC, C in HEAP
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C6030-042 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.