
IBM Developing with IBM Enterprise PL/I - C9050-042 Exam Questions
QUESTION NO: 1
Given the following declaration, what declaration of B would cause the structure Ato be invalid?
DCL K FIXED BIN (31) VALUE (10);
DCL P POINTER;
DCL 1 A BASED (P),
2 B FIXED BIN(31),
2 C DIM (K REFER (B)),
3 D FIXED BIN(31),
3 E CHAR (4);
ALLOCATE A;
Given the following declaration, what declaration of B would cause the structure Ato be invalid?
DCL K FIXED BIN (31) VALUE (10);
DCL P POINTER;
DCL 1 A BASED (P),
2 B FIXED BIN(31),
2 C DIM (K REFER (B)),
3 D FIXED BIN(31),
3 E CHAR (4);
ALLOCATE A;
Correct Answer: B
QUESTION NO: 2
A program reads an input file into a structure with 20 fields. Fifteen of these are required as parameters in
an external procedure. Which of the following is the most efficient way of passing these parameters?
A program reads an input file into a structure with 20 fields. Fifteen of these are required as parameters in
an external procedure. Which of the following is the most efficient way of passing these parameters?
Correct Answer: B
QUESTION NO: 3
What will be printed to SYSPRINT after the following statements?
DCLZZ9 PlC 'ZZ9' INIT(-1);
DCL A CHAR(10) INIT(LOW(10));
DCL B CHAR(10) INIT('PL/l');
SELECT;
WHEN(A = LOW(12))PUT('CASE 1');
WHEN(SUBSTR(B11.3) = 'PL/I') PUT('CASE 2');
WHEN(ZZ9 < 0)PUT('CASE 3');
OTHERPUT('CASE 4');
END;
What will be printed to SYSPRINT after the following statements?
DCLZZ9 PlC 'ZZ9' INIT(-1);
DCL A CHAR(10) INIT(LOW(10));
DCL B CHAR(10) INIT('PL/l');
SELECT;
WHEN(A = LOW(12))PUT('CASE 1');
WHEN(SUBSTR(B11.3) = 'PL/I') PUT('CASE 2');
WHEN(ZZ9 < 0)PUT('CASE 3');
OTHERPUT('CASE 4');
END;
Correct Answer: B
QUESTION NO: 4
Which of the following declarations uses the LEAST memory?
DCL 1 S1 ALIGNED,
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5),
2 D BIN FIXED(15);
DCL 1 S2 UNALIGNED,
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5),
2 D BIN FIXED(15);
DCL 1 S3 ALIGNED,
2 B BIN FIXED(31),
2 A CHAR(3),
2 D BIN FIXED(15),
2 C DEC FIXED(5);
DCL 1 S4 ALIGNED,
2 D BIN FIXED(15),
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5);
Which of the following declarations uses the LEAST memory?
DCL 1 S1 ALIGNED,
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5),
2 D BIN FIXED(15);
DCL 1 S2 UNALIGNED,
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5),
2 D BIN FIXED(15);
DCL 1 S3 ALIGNED,
2 B BIN FIXED(31),
2 A CHAR(3),
2 D BIN FIXED(15),
2 C DEC FIXED(5);
DCL 1 S4 ALIGNED,
2 D BIN FIXED(15),
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5);
Correct Answer: A
QUESTION NO: 5
Which compiler option causes the compiler to flag any reference to structure members that are not level 1
and are not dot qualified?
Which compiler option causes the compiler to flag any reference to structure members that are not level 1
and are not dot qualified?
Correct Answer: A
QUESTION NO: 6
Which of the following is NOT a builtin subroutine which supports Logical Unit of Work?
Which of the following is NOT a builtin subroutine which supports Logical Unit of Work?
Correct Answer: C
QUESTION NO: 7
Which of the following is generally NOT an area of concern when calling a program written in another
language from PL/I?
Which of the following is generally NOT an area of concern when calling a program written in another
language from PL/I?
Correct Answer: B
QUESTION NO: 8
Which of the following is a typical deadlock situation?
Situation 1:
Transaction A waiting for resource_2 and Transaction B waiting for resource_1 while resource_1 is held
by Transaction C and resource_2 is held by Transaction B
Situation 2:
Transaction A waiting for resource_1 and Transaction B waiting for resource_2 while resource_1 is held
by Transaction B and resource_2 is held by Transaction C
Situation 3:
Transaction A Waiting for resource_2, Transaction B waiting for resource_3, Transaction C waiting for
resource_1 ,while resource_1 ,resource_2 and resource_3 are held by Transactions A, B and C
respectively.
Situation 4:
Transaction B waiting for resource_1 and Transaction C waiting for resource 2 while resource_1 is held
by Transaction C and resource_2 is held by Transaction A
Which of the following is a typical deadlock situation?
Situation 1:
Transaction A waiting for resource_2 and Transaction B waiting for resource_1 while resource_1 is held
by Transaction C and resource_2 is held by Transaction B
Situation 2:
Transaction A waiting for resource_1 and Transaction B waiting for resource_2 while resource_1 is held
by Transaction B and resource_2 is held by Transaction C
Situation 3:
Transaction A Waiting for resource_2, Transaction B waiting for resource_3, Transaction C waiting for
resource_1 ,while resource_1 ,resource_2 and resource_3 are held by Transactions A, B and C
respectively.
Situation 4:
Transaction B waiting for resource_1 and Transaction C waiting for resource 2 while resource_1 is held
by Transaction C and resource_2 is held by Transaction A
Correct Answer: C




