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 (C6030-041) Free Practice Test

Question 1
CORRECT TEXT
Given the following declarations, which code is INVALID?
DCL (P,Q) POINTER;
DCLX CHAR(16) BASED(P);

Correct Answer: A
Question 2
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 3
CORRECT TEXT
Given the following code, what SELECT code is NOT equivalent?
DCL(C,W,V) CHAR (1);
SELECT (C);
WHEN ('A''B') PUT ('1')
WHEN ('C') PUT ('2')
WHEN (W) PUT ('3')
WHEN (V) PUT ('4');
OTHERPUT ('Other');
END;

Correct Answer: A
Question 4
CORRECT TEXT
What is the key difference between logical file name and physical dataset name?

Correct Answer: A
Question 5
CORRECT TEXT
Given the following piece of code, what will happen when the code is executed if STRINGSIZE is not enabled?
DCL X CHAR (5) INIT ('ABCDE');
DCL Y CHAR (3) INIT (");
Y = X;

Correct Answer: C
Question 6
CORRECT TEXT
Which of the following is NOT a valid way to set a pointer P to zero?

Correct Answer: A
Question 7
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: B
Question 8
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