Exam Code: C6030-041
Exam Name: Programming with IBM Enterprise PL/I
What is the value of B after executing the following code?
DCL A CHAR(10) VAR;
DCL B BIN FIXED(31) INIT(0);
DCL C CHAR(5) INIT(‘ABCD’);
A = C;
B = LENGTH(A);
Which of the following is a BIN FIXED constant?
What is the most appropriate data type for a variable that is being used to represent numeric data in a printable form and at the same time can be used to perform arithmetic?
A. BIN FIXED
B. DEC FIXED
What is the most appropriate declaration for the variable A? A = ‘ABCDEF’;
A. DCL A BIN FIXED(15);
B. DCL A CHAR(6);
C. DCL A DEC FIXED (15,3);
D. DCL A PIC ‘999999’;
Which of the following would NOT access the third element of A?
DCL 1 XY(5),
2 A(4) CHAR(4);
Given the following code, what can be said about the scope of the variables in procedure P?
DCL K FIXED BIN (15);
DCL S CHAR (10);
A. Variable S is known in the entire procedure.
B. Variable K is known in the entire procedure.
C. Variable S is not known in block B.
D. Variable K is known in group D.
What will be output by the following program?
TEST: PROC OPTIONS(MAIN);
DCL A CONTROLLED FIXED BIN(31);
PUT SKIP LIST( ALLOCN(A) );
SUB: PROC( B );
DCL B CONTROLLED FIXED BIN(31);
What is the value of A after executing the following code?
DCL A CHAR(6) INIT (‘ABCDEF’);
DCL B CHAR(10) INIT (‘0123456789’);
A = SUBSTR(B,5,3);
A. ‘456 ‘
B. ‘ 456’
What does the following code do, if anything?
A. Release the memory used by the program U
B. Reloads the program U into the memory
C. Closes the file U
D. Nothing because there is a syntax error.
What is the result, if any, of executing the following code?
DCL A BIT(1) INIT(‘0’B);
DCL B BIT(1) INIT(‘0’B);
DCL C BIT(1) INIT(‘1’B);
A = B ! C;
A. The value of A is ‘0’B
B. The value of A is ‘1’B.
C. The value of A is unpredictable.
D. There is no result, because the syntax is wrong.
What does BX.WOK.LOAD refer to in the following job control statement?
//ACCOUNT DD DSN=BX.WOK.LOAD,DISP=SHR
A. It is the connection between program and dataset.
B. It is the physical dataset name.
C. It is the logical dataset name.
D. It is the name which must be referred to in the program.
What will be printed when the following subroutine is called for the third time?
A : PROC;
DCL X PIC ‘9’ INIT(0);
X = X + 1;
PUT SKIP LIST (‘THE VALUE OF X IS :’!!X);
X = X + 1;
A. THE VALUE OF X IS :1
B. THE VALUE OF X IS :2
C. THE VALUE OF X IS :3
D. THE VALUE OF X IS :5
Given the following code, with what attribute should the variable EOF be declared?
A. FIXED BIN (7)
B. BIT (1)
C. CHAR (1)
D. FIXED DEC (3)
Which is the most appropriate code to turn all of the bits in A ON?
DCL A BIT(8);
A. A = 255;
B. A = ‘11111111’B;
C. A = 11111111B;
D. A = -1;
If you want to pass IBM C6030-041 successfully, donot missing to read latest lead2pass IBM C6030-041 exam questions.
If you can master all lead2pass questions you will able to pass 100% guaranteed.