IBM Programming with IBM Enterprise PL/I - C6030-041 FREE EXAM DUMPS QUESTIONS & ANSWERS

CORRECT TEXT
What is the most appropriate declaration for the variable A?
A = '10010001'B;
Correct Answer: D Vote an answer
CORRECT TEXT
Which of the following would NOT access the third element of A?
DCL 1XY(5),
2 A(4) CHAR(4);
Correct Answer: D Vote an answer
CORRECT TEXT
What will be output by the following program?
TEST: PROC OPTIONS(MAIN);
DCL A CONTROLLED FIXED BIN(31);
ALLOC A;
ALLOC A;
CALL SUB(A);
PUT SKIP LIST( ALLOCN(A));
SUB: PROC( B);
DCL B CONTROLLED FIXED BIN(31);
FREE B;
ALLOC B;
ALLOC B;
FREE B;
ALLOC B;
END;
END;
Correct Answer: A Vote an answer
CORRECT TEXT
Under default condition enablement, what is the result of executing the following code?
DCLX CHAR(5) INIT('A1234');
DCL Y PlC '9999' INIT(0);
Y = X;
Correct Answer: B Vote an answer
CORRECT TEXT
What is the output of the following program?
MAIN: PROC OPTIONS(MAIN);
DCL
1 A UNION,
2 5 CHAR(4) INIT('FADE'),
2 C CHAR(2);
C = 'BA';
PUT SKIP LIST( B !! C);
END;
Correct Answer: D Vote an answer
CORRECT TEXT
The following code calls an external function procedure. Which program matches the entry declaration?
DCL F FLOAT;
DCLX CHAR(1);
DCL FUN ENTRY (FIXED BIN (15), FLOAT) RETURNS (CHAR(1));
X=FUN(1, F);
Correct Answer: A Vote an answer
CORRECT TEXT
A programmer has been asked to write a program that tests a variable, X, and writes out A, B, C or D if X is 0, 1, 2 or 3 respectively and writes out E when X has none of those values. Which of the following programs represents the best practice using IF or SELECT statements?
Correct Answer: A Vote an answer
CORRECT TEXT
Given the following code, how many times is the PUT statement executed?
DCL I FIXED BIN (31) INIT (0);
L1:
DO LOOP;
I += 1;
DO LOOP;
I += 1;
IF I >= 10 THEN LEAVE L1;
PUT SKIP LIST (I);
END;
END;
Correct Answer: B Vote an answer
CORRECT TEXT
Given the following code, which SIGNAL statement would cause a new page starting with the line 'header text' to be written to file X?
DCLX FILL STREAM PRINT OUTPUT;
ON ENDPAGE(X) PUT SKIP FILE(X) LIST('header text');
Correct Answer: B Vote an answer
CORRECT TEXT
Given the following code:
DCL (K, L) FIXED BIN (31) INIT G(0);Certified @ TEST-KINGS.COM
DCL SUB ENTRY( FIXED BIN(31) BYADDR, FIXED BIN(31)) OPT IONS(BYVALUE);
CALL SUB(K, L);
PUT(K, L);
and the following external procedure:
SUB: PROCEDUPE(K, L) OPTIONS( BYVALUE); DCL (K BYADDR, L) FIXED BIN(31);
K = 10;
L = 10;
END;
Which numbers are output by the PUT statement?
Correct Answer: D Vote an answer
0
0
0
10