Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

IBM Programming with IBM Enterprise PL/I (C9050-041) Free Practice Test

Question 1
CORRECT TEXT
Given the following DECLARE statement, how many bytes will be allocated to A?
DCL
1 A UNION,
2 C8 CHAR(8),
2 XB FIXED BIN(31),
2 BX BIT(16);

Correct Answer: B
Question 2
CORRECT TEXT
If FUNC_CODE is a CHAR(4) variable, then for the following code, what is the best declaration
for GHU, GU, etc
SELECT( FUNC CODE);
WHEN( GHU) ...
WHEN( GU ) ...
etc
END;

Correct Answer: B
Question 3
CORRECT TEXT
What code would result in the BIT string B having all ones?
DCL A CHAR(8) INIT(HIGH(8));
DCL (HIGH ,ADDR) BUILTIN;

Correct Answer: D
Question 4
CORRECT TEXT
Given the following code for a main program and an external subroutine, what will be output?
*PROCESS INITAUTO;
MP: PROC OPTIONS(MAIN);
DCL SR1 EXT ENTRY;
DCL I BIN FIXED(31) EXTERNAL INIT(0);
DCL J BIN FIXED(31) EXTERNAL INIT(0);
DCL K BIN FIXED(3i) EXTERNAL INIT(0);
CALL SR1(I);
CALL SR1(I);
CALL SR1(I);
PUT SKIP LIST(I+J+K);
END;
*PROCESS INITAUTO;
SR1: PROC(I);
DCL I BIN FIXED(31);
DCL J BIN FIXED(31) EXTERNAL INIT(0);
DCL K BIN FIXED(31);
I = I + 1;
J =J + 10;
K = K+ 100;
END SR1;

Correct Answer: B
Question 5
CORRECT TEXT
Which of the following is a BIT string constant?

Correct Answer: A
Question 6
CORRECT TEXT
Which of the following will print a line containing "1" and then a line containing "DONE"?

Correct Answer: C
Question 7
CORRECT TEXT
Which is the impact, if any, of LIKE in the following code?
DCL
1 XY
2 A CHAR(4),
2 B BIN FIXED(31);
DCL 1 YZ LIKE XY;

Correct Answer: A
Question 8
CORRECT TEXT
Which of the following describes when a program is NOT FETCHABLE?

Correct Answer: C