최신IBM Developing with IBM Enterprise PL/I - C9050-042무료샘플문제
문제1
A dummy argument is NOT created when a routine is called in which of the following situations?
A dummy argument is NOT created when a routine is called in which of the following situations?
정답: D
문제2
Given the following pseudocode inside a loop, where should the COMMIT action be placed assuming that
there is always a one-to-many relationship between header and detail tables?
1 Find header row 2 IF found 3 Update header row 4 Find detail row 5 IF found THEN 6 Update detail
rows 7 ELSE 8 ENDIF 9 ENDIF
Given the following pseudocode inside a loop, where should the COMMIT action be placed assuming that
there is always a one-to-many relationship between header and detail tables?
1 Find header row 2 IF found 3 Update header row 4 Find detail row 5 IF found THEN 6 Update detail
rows 7 ELSE 8 ENDIF 9 ENDIF
정답: A
문제3
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?
정답: A
문제4
Prerequisite:
A sorted input dataset with record length 100 contains at least one record for all the values '1', '2', '3' in
the first byte. The applied sort criteria is 1,100,ch,a.
Requirements:
1 .) All records with '1' in the first byte must be ignored.
2 .) All records with '2' in the first byte must be written to the output dataset.
3 .) If there is a '3' in the first byte, the program must not read more records.
4 .) The program must not abend or loop infinitely.
If the following code does not fulfill the requirements above, which would be the reason, if any?
DCL DDIN FILE RECORD INPUT;
DCL DDOUT FILE RECORD OUTPUT;
DCL 1 INSTRUC,
3 A CHAR(1),
3 * CHAR(99);
DCL EOF_IN BIT(1) INIT('0'B);
DCL (Z1,Z2,Z3,ZO) BIN FIXED(31) INIT(0);
ON ENDFILE(DDIN) EOF IN = '1'B;
READ FILE(DDIN) INTO (INSTRUC);
IF EOF_IN THEN LEAVE;
SELECT(INSTRUC .A);
WHEN('1') DO;
Z1 += Z1;
ITERATE LAB;
END;
WHEN('3') DO;
Z3 = Z3 + 1;
LEAVE;
END;
WHEN('2') DO;
Z2 = Z2 + 1;
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
OTHER DO;
ZO = ZO + 1;
PUT SKIP LIST(INSTRUC.A);
END; END;/*SELECT*/
END;/*LOOP*/
Prerequisite:
A sorted input dataset with record length 100 contains at least one record for all the values '1', '2', '3' in
the first byte. The applied sort criteria is 1,100,ch,a.
Requirements:
1 .) All records with '1' in the first byte must be ignored.
2 .) All records with '2' in the first byte must be written to the output dataset.
3 .) If there is a '3' in the first byte, the program must not read more records.
4 .) The program must not abend or loop infinitely.
If the following code does not fulfill the requirements above, which would be the reason, if any?
DCL DDIN FILE RECORD INPUT;
DCL DDOUT FILE RECORD OUTPUT;
DCL 1 INSTRUC,
3 A CHAR(1),
3 * CHAR(99);
DCL EOF_IN BIT(1) INIT('0'B);
DCL (Z1,Z2,Z3,ZO) BIN FIXED(31) INIT(0);
ON ENDFILE(DDIN) EOF IN = '1'B;
READ FILE(DDIN) INTO (INSTRUC);
IF EOF_IN THEN LEAVE;
SELECT(INSTRUC .A);
WHEN('1') DO;
Z1 += Z1;
ITERATE LAB;
END;
WHEN('3') DO;
Z3 = Z3 + 1;
LEAVE;
END;
WHEN('2') DO;
Z2 = Z2 + 1;
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
OTHER DO;
ZO = ZO + 1;
PUT SKIP LIST(INSTRUC.A);
END; END;/*SELECT*/
END;/*LOOP*/
정답: B
문제5
Which of the following is NOT part of the PL/I code review?
Which of the following is NOT part of the PL/I code review?
정답: C
문제6
Assuming there is no information about the duration or each table update and the programs are running in
a multitasking environment, which of the following options will best minimize the chance for deadlocks?
Assuming there is no information about the duration or each table update and the programs are running in
a multitasking environment, which of the following options will best minimize the chance for deadlocks?
정답: A