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

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: 41 – (Topic 1)

What will be printed when the following subroutine is called for the third time? A : PROC;

DCL X PIC #39;9#39; INIT(0);

X = X 1;

PUT SKIP LIST (#39;THE VALUE OF X IS :#39;!!X); X = X 1;

END A;

  1. THE VALUE OF X IS :1

  2. THE VALUE OF X IS :2

  3. THE VALUE OF X IS :3

  4. THE VALUE OF X IS :5

Answer: A

Question No: 42 – (Topic 1)

Given the following piece of code, what will be output?

  1. PROCEDURE OPTIONS (MAIN); DCL K CHAR (1) INIT (#39;A#39;);

    CALL B;

  2. PROCEDURE;

    DCL K CHAR (1) INIT (#39;B#39;); CALL C;

  3. PROCEDURE ;

    DCL K CHAR (1) INIT (#39;C#39;); PUT (K);

    CALL D; END C;

  4. PROCEDURE; PUT (K);

    END D; END B; PUT (K); END A;

  5. C A A

  6. C C A

  7. C B A

  8. C A B

Answer: C

Question No: 43 – (Topic 1)

If the physical dataset referred to by DDOUT has a maximum record length of 196 and a RECFM=V, what happens after executing the following code?

DCL DDOUT FILE RECORD OUTPUT;

DCL OUT_CHAR CHAR(500) VARYING INIT((220) #39; #39;); OPEN FILE(DDOUT);

WRITE FILE(DDOUT) FROM(OUT_CHAR);

  1. One record with a length of 220 will be written to the output file.

  2. One record with a length of 500 will be written to the output file.

  3. One record with a length of 196 will be written to the output file.

  4. An error will occur because of mismatch of record length.

Answer: D

Question No: 44 – (Topic 1)

Which is the most appropriate code to turn all of the bits in A ON?

DCL A BIT(8);

A. A = 255;

B. A = #39;11111111#39;B; C. A = 11111111B; D. A = -1;

Answer: B

Question No: 45 – (Topic 1)

In which of the following situations can a subroutine be replaced by a function without any

major changes to the code?

  1. When the subroutine changes an array parameter

  2. When the subroutine changes a structure parameter

  3. When the subroutine changes more than one parameter

  4. When the subroutine changes only one scalar parameter

Answer: D

Question No: 46 – (Topic 1)

What is the result, if any, of executing the following code?

DCL A CHAR(2) INIT(#39; #39;);

DCL B BIT(2) INIT(#39;11#39;B);

A = ^B;

  1. The value of A is #39;00#39;.

  2. The value of A is #39;11#39;.

  3. The value of A is unpredictable.

  4. There is no result, because the syntax is wrong.

Answer: A

Question No: 47 – (Topic 1)

Given the following declaration, the compiler will issue the message quot;The variable RX is declared without any data attributes.quot;

What possible problem is this message reporting?

DCL RX, RY FIXED BIN;

  1. That the code is in error because a variable declared without attributes is not allocated storage

  2. That the code is in error because only one variable may be declared in any one statement

  3. That the code is in error because the FIXED BIN attribute would not apply to both RX and RY

  4. That the code is in error because the FIXED BIN precision was not specified

Answer: C

Question No: 48 – (Topic 1)

What is the result of executing the following code?

DCL A BIN FIXED(31) INIT(10000); DCL B BIN FIXED(15) INIT(8000);

B = B / A ;

  1. The value of B is 0.8.

  2. The value of B is 0.

  3. The value of B is 1.

  4. CONVERSION would be raised.

Answer: B

Question No: 49 – (Topic 1)

Under default condition enablement, what is the result of executing the following code?

DCL X CHAR(5) INIT(#39;A1234#39;); DCL Y PIC #39;9999#39; INIT(0);

Y = X;

  1. The value of Y is A123.

  2. The value of Y is 1234.

  3. CONVERSION would be raised.

  4. STRINGSIZE would be raised.

Answer: C

Question No: 50 – (Topic 1)

Which is the most appropriate data type declaration for the variable A in the following expression, if A is used as a counter?

A = A 1;

  1. CHAR

  2. BIN FIXED

  3. FLOAT

  4. PIC

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