[Free] 2018(Jan) EnsurePass Examcollection IBM C9050-041 Dumps with VCE and PDF 21-30

Ensurepass.com : Ensure you pass the IT Exams
2018 Jan IBM Official New Released C9050-041
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/C9050-041.html

Programming with IBM Enterprise PL/I

Question No: 21 – (Topic 1)

If the physical dataset referred to by DDIN has a record length of 200 and a RECFM of F, what happens after executing the following code?

DCL DDIN FILE RECORD INPUT; DCL 1 INSTR,

2 A CHAR(150),

2 B CHAR(150);

OPEN FILE(DDIN);

READ FILE(DDIN) INTO(INSTR);

  1. When executed, one record will be read into buffer.

  2. At runtime, an error will occur because of mismatch of record length.

  3. At compile time, an error will occur because of mismatch of record length.

  4. When executed, nothing will be read into the buffer.

Answer: B

Question No: 22 – (Topic 1)

Given the following code, what value will be output? TEST: PROC OPTIONS(MAIN);

DCL

P POINTER,

N1 FIXED BIN(31), 1 A BASED(P),

2 A1 FIXED BIN(31),

2 A2 FIXED BIN(31),

2 A3 FIXED BIN(31),

2 A4( N1 REFER(A3) ) CHAR(10) VAR;

N1 = 5; ALLOC A;

PUT SKIP LIST( STG(A) ); END;

  1. 22

  2. 24

  3. 62

  4. 72

Answer: D

Question No: 23 – (Topic 1)

Given the following code in a program, which code will NOT change the program#39;s behavior when the ENDFILE(SYSIN) condition is raised?

ON ENDFILE (SYSIN) GOTO START;

  1. ON ENDFILE (SYSIN);

  2. ON ENDFILE (SYSIN) EOF = #39;1#39;B;

  3. REVERT ENDFILE (SYSIN);

  4. SIGNAL ENDFILE (SYSIN);

Answer: D

Question No: 24 – (Topic 1)

What happens after executing the following code? DCL A BIN FIXED(15);

A = 1_000;

  1. The value of A is 1000.

  2. The value of A is 8.

  3. The value of A is 1.

  4. There is a syntax error.

Answer: A

Question No: 25 – (Topic 1)

What value is output by the following program? TEST: PACKAGE;

DCL N EXT FIXED BIN(31) INIT(10);

DCL C(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;

  1. 10

  2. 20

  3. 30

  4. 40

Answer: C

Question No: 26 – (Topic 1)

What is the value of B, if any, after executing the following code?

DCL A CHAR(5) INIT(#39;ABCDE#39;); DCL B CHAR(5) DEF A;

  1. NULL

  2. Blank

  3. #39;ABCDE#39;

  4. It cannot be defined.

Answer: C

Question No: 27 – (Topic 1)

Given the following program, which subroutine improperly uses pointers to address memory and could lead to data corruption or an exception?

  1. PROC OPTIONS(MAIN); DCL

    1 X,

    2 X1 CHAR(76),

    2 X2 PIC#39;9999#39;; DCL Y CHAR(20);

    CALL SUB1( ADDR(X) ); CALL SUB2( ADDR(X) ); CALL SUB3( ADDR(X) ); CALL SUB4( ADDR(X) ); SUB1: PROC( P );

    DCL P POINTER; DCL

    1 X BASED(P),

    2 X1 CHAR(76),

    2 X2 PIC#39;9999#39;; X = #39;#39;;

    END;

    SUB2: PROC( P ); DCL P POINTER; DCL

    1 X BASED(P),

    2 X1 PIC#39;(76)X#39;,

    2 X2 PIC#39;9999#39;; X = #39;#39;;

    END;

    SUB3: PROC( P ); DCL P POINTER;

    DCL X CHAR(80) BASED(P); X = #39;#39;;

    END;

    SUB4: PROC( P ); DCL P POINTER;

    DCL X CHAR(100) BASED(P); X = #39;#39;;

    END; END;

  2. SUB1

  3. SUB2

  4. SUB3

  5. SUB4

Answer: D

Question No: 28 – (Topic 1)

Which of the following is a BIT string constant?

A. 1000

B. #39;1000#39;

C. #39;1000#39;B

D. 1000B

Answer: C

Question No: 29 – (Topic 1)

What would be printed to SYSPRINT after executing the following code?

DCL A DEC FIXED(15,3) INIT(1000.123); DCL B PIC #39;ZZZZ9V.999#39; INIT(0);

B = A 2000.123;

UT SKIP LIST(#39;THE VALUE OF B IS :#39; !! B);

  1. THE VALUE OF B IS : 3000.246

  2. THE VALUE OF B IS :03000.246

  3. THE VALUE OF B IS :3000.246

  4. THE VALUE OF B IS :3000246

Answer: A

Question No: 30 – (Topic 1)

What should be done, if anything, when the following compiler message appears? Multiple closure of blocks, one extra END statement assumed.

  1. Take out the extra END statement.

  2. Find the missing END statement and add it at the right place.

  3. PUT an extra END statement at the end of the program.

  4. Nothing needs to be done.

Answer: B

100% Ensurepass Free Download!
Download Free Demo:C9050-041 Demo PDF
100% Ensurepass Free Guaranteed!
Download 2018 EnsurePass C9050-041 Full Exam PDF and VCE

EnsurePass ExamCollection Testking
Lowest Price Guarantee Yes No No
Up-to-Dated Yes No No
Real Questions Yes No No
Explanation Yes No No
PDF VCE Yes No No
Free VCE Simulator Yes No No
Instant Download Yes No No