最新的IBM Programming with IBM Enterprise PL/I - C6030-041免費考試真題
CORRECT TEXT
Which of the following must be used to load and unload a program to and from main memory?
Which of the following must be used to load and unload a program to and from main memory?
正確答案: B
CORRECT TEXT
Given the following code, which SIGNAL statement would cause a new page starting with the line 'header text' to be written to file X?
DCLX FILL STREAM PRINT OUTPUT;
ON ENDPAGE(X) PUT SKIP FILE(X) LIST('header text');
Given the following code, which SIGNAL statement would cause a new page starting with the line 'header text' to be written to file X?
DCLX FILL STREAM PRINT OUTPUT;
ON ENDPAGE(X) PUT SKIP FILE(X) LIST('header text');
正確答案: D
CORRECT TEXT
Given the following DECLARE statement, how many bytes will be allocated to A?
DCL
1 A UNION,
2 C8 CHAR(8),
2 XB FIXED BIN(31),
2 BX BIT(16);
Given the following DECLARE statement, how many bytes will be allocated to A?
DCL
1 A UNION,
2 C8 CHAR(8),
2 XB FIXED BIN(31),
2 BX BIT(16);
正確答案: A
CORRECT TEXT
What value will be output when the following code is executed?
TEST: PROC OPTIONS(MAIN);
DCLA(*) CONTROLLED FIXED BIN(31);
ALLOC A(10);
CALL SUB(A); PUT SKIP LIST( HBOUND(A,1));
SUB: PROC( B);
DCL B(*) CONTROLLED FIXED BIN(31);
ALLOC B(2*HBOUND (B,1));
ALLOC B( 2*HBOUND(B,1)); END;
END;
What value will be output when the following code is executed?
TEST: PROC OPTIONS(MAIN);
DCLA(*) CONTROLLED FIXED BIN(31);
ALLOC A(10);
CALL SUB(A); PUT SKIP LIST( HBOUND(A,1));
SUB: PROC( B);
DCL B(*) CONTROLLED FIXED BIN(31);
ALLOC B(2*HBOUND (B,1));
ALLOC B( 2*HBOUND(B,1)); END;
END;
正確答案: D
CORRECT TEXT
What does BX.WOK.LOAD refer to in the following job control statement?
I/ACCOUNT DD DSN=BX.WOK.LOAD,DISP=SHR
What does BX.WOK.LOAD refer to in the following job control statement?
I/ACCOUNT DD DSN=BX.WOK.LOAD,DISP=SHR
正確答案: B
CORRECT TEXT
Which of the following methods of initializing the variable X is most efficient because it results in
the fewest compiler instructions?
DCL A PlC '999V.99';
DCL A CHAR(6)INIT( '000.00');
DCL B DEC FIXED(5,2) INIT( 0);
DCL C BIT(8)INIT( '00000000'B);
DCL D FLOAT(6)INIT( 0E0);
Which of the following methods of initializing the variable X is most efficient because it results in
the fewest compiler instructions?
DCL A PlC '999V.99';
DCL A CHAR(6)INIT( '000.00');
DCL B DEC FIXED(5,2) INIT( 0);
DCL C BIT(8)INIT( '00000000'B);
DCL D FLOAT(6)INIT( 0E0);
正確答案: C
CORRECT TEXT
What must be done, if anything, before calling the program U if it is declared as follows?
DCL U ENTRY OPTIONS (FETCHASLE);
What must be done, if anything, before calling the program U if it is declared as follows?
DCL U ENTRY OPTIONS (FETCHASLE);
正確答案: A
Given the following code, the compiler will issue the message "RULES(NOLAXIF) requires BIT(1) expressions in IF, WHILE, etc." under the option RULES(NOLAXIF).
In order to fix this problem, the IF statement should be changed to:
In order to fix this problem, the IF statement should be changed to:
正確答案: A
CORRECT TEXT
Which of the following statements, if any, needs to be executed before the variable A can be used?
DCL A CHAR(5) CONTROLLED;
Which of the following statements, if any, needs to be executed before the variable A can be used?
DCL A CHAR(5) CONTROLLED;
正確答案: B