Free IBM 000-041 Exam Dumps Questions & Answers
| Exam Code/Number: | 000-041Join the discussion |
| Exam Name: | Programming with IBM Enterprise PL/I |
| Certification: | IBM |
| Free Question Number: | 146 |
| Publish Date: | Jul 20, 2026 |
| # of views: | 1667 |
|
|
|
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 TEXT
If the following syntax is incorrect, how should the syntax be changed?
DCL A CHAR(100) BASED(P);
DCL P PTR;
ALLOCATE A;
READ FILE(DDIN) INTO(A);
CORRECT TEXT
Given the following code, what value will be output?
TEST: PROC OPTIONS(MAIN);
DCL
P POINTER,
N1 FIXED BIN(31),
1 A BASED(P),
2 A1 FIXED BIN(3i),
2 A2 FIXED BIN(3i),
2 A3 FIXED BIN(3i),
2 A4( N1 REFER(A3)) CHAR(10) VAR;
N1 = 5;
ALLOC A;
PUT SKIP LIST( STG(A)); END;
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?