問題1
Which compiler option causes the compiler to flag any IF, WHILE, UNTIL and WHEN clauses that do not
have the attributes BIT(1) NONVARYING?
Which compiler option causes the compiler to flag any IF, WHILE, UNTIL and WHEN clauses that do not
have the attributes BIT(1) NONVARYING?
正確答案: D
問題2
Given the following declaration, W has to be assigned to C.
How can a CONVERSION condition be
avoided?
DCL C CHAR(1);
DCL W WIDECHAR(1);
Given the following declaration, W has to be assigned to C.
How can a CONVERSION condition be
avoided?
DCL C CHAR(1);
DCL W WIDECHAR(1);
正確答案: A
問題3
Given the following code, what are the default attributes of DSET1 after the READ statement?
DCL DATA CHAR (80);
DCL DSET1 FILE;
READ FILE(DSET1) INTO(DATA);
Given the following code, what are the default attributes of DSET1 after the READ statement?
DCL DATA CHAR (80);
DCL DSET1 FILE;
READ FILE(DSET1) INTO(DATA);
正確答案: D
問題4
A PL/I program performance analwer can best help identify which of the following?
A PL/I program performance analwer can best help identify which of the following?
正確答案: B
問題5
Requirement Copy a dataset of record length 100 to another dataset.
If the following code does not fulfill the requirement above, which is the most likely reason?
DCL DDIN FILE RECORD INPUT;
DCL DDOUT FILE RECORD OUTPUT;
DCL INSTRUC CHAR(100);
DCL EOF_IN BIT(1) INIT('0'B);
ON ENDFILE(DDIN) EOF_IN = '1'B;
READ FILE(DDIN) INTO(INSTRUC);
DO WHlLE(^EOF_IN);
WRITE FILE(DDOUT) FROM(INSTRUC);
READ FILE(DDIN) INTO(INSTRUC);
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
Requirement Copy a dataset of record length 100 to another dataset.
If the following code does not fulfill the requirement above, which is the most likely reason?
DCL DDIN FILE RECORD INPUT;
DCL DDOUT FILE RECORD OUTPUT;
DCL INSTRUC CHAR(100);
DCL EOF_IN BIT(1) INIT('0'B);
ON ENDFILE(DDIN) EOF_IN = '1'B;
READ FILE(DDIN) INTO(INSTRUC);
DO WHlLE(^EOF_IN);
WRITE FILE(DDOUT) FROM(INSTRUC);
READ FILE(DDIN) INTO(INSTRUC);
WRITE FILE(DDOUT) FROM(INSTRUC);
END;
正確答案: C
問題6
Which of the following statements is best for avoiding synchronously updating a resource?
Which of the following statements is best for avoiding synchronously updating a resource?
正確答案: A
問題7
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?
正確答案: B
問題8
Given the following code, what will happen?
DCL(K, L) FIXED DEC (1);
K= 1;
L = 2;
PUT SKIP LIST (12+K/L);
Given the following code, what will happen?
DCL(K, L) FIXED DEC (1);
K= 1;
L = 2;
PUT SKIP LIST (12+K/L);
正確答案: A