CORRECT TEXT
What does BX.WOK.LOAD refer to in the following job control statement?
I/ACCOUNT DD DSN=BX.WOK.LOAD,DISP=SHR
A. It is the connection between program and dataset.
B. It is the name which must be referred to in the program.
C. It is the physical dataset name.
D. It is the logical dataset name.
正解:C
質問 2:
CORRECT TEXT
Given the following code, how many times is the loop executed?
DCL A(11) FIXED DEC(15,3);
DCL I FIXED BIN (31);
DO I = 1 TO 11;
A(I) = 0;
I = 1+1;
END;
A. 1
B. 11
C. Infinitely
D. 6
正解:D
質問 3:
CORRECT TEXT
What happens to the STATIC variables in the program U, if anything, alter executing the following code?
FETCH U; CALL U; RELEASE U; FETCH U;
A. STATIC variables cannot be used in program U.
B. Nothing because there is a syntax error.
C. STATIC variables will have the values from the last time U was called.
D. STATIC variables
will have their INITIAL values.
正解:D
質問 4:
CORRECT TEXT
What is the result, if any, or executing the following code?
DCL A BIT(1) INIT('0'B);
DCLB BIT(1) INIT('0'B);
DCLC BIT(1) INIT('1'B);
A = ^B & C;
A. There is no result because the syntax is wrong.
B. The value of A is'1'S.
C. The value of A is 'OS.
D. The value of A is unpredictable.
正解:B
質問 5:
CORRECT TEXT
What code will print the value of A to SYSPRINT? DCLA DEC FIXED(5,3) INIT(12.0);
A. PUT SKIP LIST('Value of A is:'), (A);
B. PUT SKIP LIST('Value of A is:')(A);
C. PUT SKIP LIST('Value of A is:' !! A);
D. PUT SKIP LISTA;
正解:C
質問 6:
CORRECT TEXT
Given the following code, how many times is the PUT statement executed?
DCL I FIXED BIN (31) INIT (0);
L1:
DO LOOP;
I += 1;
DO LOOP;
I += 1;
IF I >= 10 THEN LEAVE L1;
PUT SKIP LIST (I);
END;
END;
A. 8
B. 9
C. 10
D. 7
正解:A
質問 7:
CORRECT TEXT
Given the following code, what will be the output of the preprocessor?
%DCL FLAG CHAR;
%FIag = 'TEST ,OPT';
%DCL FUN ENTRY; FUN(FIag)
%FUN: PROC (S);
DCL S CHAR;
IF INDEX(S, 'TEST') > 0 THEN
ANSWER ('put ("Test modus entered");') SKIP;
IF INDEX(S, 'OPT') > 0 THEN ANSWER ('put ("Optimize modus entered");') SKIP;
%END FUN;
A. put ("Test modus entered");
B. put ("Test modus entered"); put ("Optimize modus entered");
C. put ("Fun(Flag)");
D. put ("Optimize modus entered");
正解:B
質問 8:
CORRECT TEXT
What value is output by the following program?
TEST: PACKAGE;
D
CL N EXT FIXED BIN(31) INIT(10);
DCLC(N) EXT CONTROLLED FIXED BIN(31);
MAIN: PROC OPTIONS(MAIN);
ALLOC C;
ALLOC C(20);
N = 30;
CALL UPGM;
END;
UPGM: PROC;
ALLOC C;
N = 40;
PUT SKIP LIST( DIM(C));
END;
END;
A. 40
B. 20
C. 10
D. 30
正解:D