IBM Developing with IBM Enterprise PL/I Sample Questions:
1. Given the following declaration, which code does NOT initialize C completely?
DCL 1 A,
2 B DIM (0:9),
3 C DIM (5) FIXED BIN (31),
3 D CHAR (100) VAR;
A) 3 C DIM (5) FIXED BIN(31) INIT ((50)1),
B) 3 C DIM (5) FIXED BIN(31) INIT ((5)1,(*)2),
C) 3 C DIM (5) FIXED BIN(31) INIT ((HSOUND(C,1))( 0)),
D) 3 C DIM (5) FIXED BIN(31) INIT ((*)1),
2. The lead developer has reviewed the team's progress and determined that the deadline of one week
cannot be met since all of the modules have not been thoroughly tested. Which of the following is the best
action for the lead developer to take?
A) Ask management for more staff to ensure the testing is completed by the deadline.
B) Suggest that management lower the price of the productsince it does not have all therequired
functionality.
C) Tell managementthatthe quality of the software maybe lowerthan expected but itwill be delivered on
time.
D) Tell management that not all functionality can be provided but those modules provided will be of high
quality.
3. A module which is serially reusable has which of the following characteristics?
A) Is designed for concurrent execution by multiple tasks
B) Must contain the necessary logic to reset control variables and data areas at entry or exit and a second
task may not enter the module until the first task has finished
C) Is intended for single use only and must be refreshed from disk before it can be invoked again
D) All or part of it may be replaced at any time by the operating system
4. What will be printed, if anything, to SYSPRINT after executing the following code?
DCL A FIXED CONTROLLED;
DCL P PTR;
DCL X FIXED BASED(P);
ALLOC A;
A = 1;
ALLOC A;
A = 2;
P = ADDR(A);
ALLOC A;
A = 3;
P = ADDR(A);
ALLOC A;
A = 4;
FREE A;
FREE A;
PUT DATA(X);
A) 2
B) 3
C) The results are undefined.
D) 4
5. The XMLCHAR builtin function provides the ability to do which of the following?
A) Check XML for validity
B) Check XML for well-formedness
C) Read an XML file into a structure
D) Create an XML buffer from a structure
Solutions:
| Question # 1 Answer: C | Question # 2 Answer: D | Question # 3 Answer: B | Question # 4 Answer: C | Question # 5 Answer: D |
We're so confident of our products that we provide no hassle product exchange.


By Rose

