Dumps4cert.com : Latest Dumps with PDF and VCE Files
2018 Jan IBM Official New Released C9050-041
100% Free Download! 100% Pass Guaranteed!
http://www.Dumps4cert.com/C9050-041.html

Programming with IBM Enterprise PL/I

Question No: 101 – (Topic 2)

Given the following code, what is the best way to code the PROC statement and to declare the parameters for UPRO1?

MPROG: PROC OPTIONS(MAIN); DCL F FLOAT BIN(53);

CALL UPRO1(ADDR(F));

  1. UPRO1: PROC(P_PARM);DCL P_PARM PTR;DCL PARM_F FLOAT BIN(53) BASED(ADDR(P_PARM));

  2. UPRO1: PROC(P_PARM);DCL P_PARM PTR;DCL PARM_F FLOAT BIN(53) BASED(P_PARM);

  3. UPRO1: PROC(PARM_F);DCL PARM_F FLOAT BIN(53);

  4. UPRO1: PROC(P_PARM);DCL P_PARM PTR;DCL PARM_PTR BASED (P_PARM);DCL PARM_F FLOAT BIN(53) BASED(PARM_PTR);

Answer: B

Question No: 102 – (Topic 2)

Given the following code for a main program and an external subroutine, what will be output?

*PROCESS INITAUTO;

MP: PROC OPTIONS(MAIN); DCL SR1 EXT ENTRY;

DCL I BIN FIXED(31) EXTERNAL INIT(0); DCL J BIN FIXED(31) EXTERNAL INIT(0); DCL K BIN FIXED(31) EXTERNAL INIT(0); CALL SR1(I);

CALL SR1(I); CALL SR1(I);

PUT SKIP LIST(I J K); END;

*PROCESS INITAUTO; SR1: PROC(I);

DCL I BIN FIXED(31);

DCL J BIN FIXED(31) EXTERNAL INIT(0); DCL K BIN FIXED(31);

I = I 1;

J = J 10; K = K 100; END SR1;

A. 33 B. 303 C. 330 D. 333

Answer: A

Question No: 103 – (Topic 2)

Which of the following is NOT a possible cause of the following compiler message?

The end of the source was reached before the logical end of the program.

  1. The program is missing a closing quote in some string.

  2. The program is missing an end of comment.

  3. The program is missing an END statement.

  4. The program is missing the name of the outermost PROCEDURE on the last END statement.

Answer: D

Question No: 104 – (Topic 2)

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 = I 1; END;

  1. 1

  2. 6

  3. 11

  4. Infinitely

Answer: B

Question No: 105 – (Topic 2)

What will be printed to SYSPRINT, if anything, after executing the following code? DCL A PIC #39;9999#39;;

A = #39; 123#39;;

PUT SKIP LIST(#39;VALUE OF A IS :#39; !! A);

  1. VALUE OF A IS : 123

  2. VALUE OF A IS :0123

  3. VALUE OF A IS :123

  4. No value will be displayed because the assignment statement will cause a conversion error.

Answer: B

Question No: 106 – (Topic 2)

What is the value of A after executing the following code?

DCL A CHAR(8) INIT (#39;EfGhIjKl#39;); DCL TRANSLATE BUILTIN;

A = TRANSLATE(A,#39;ABCDEFGH#39;,#39;abcdefgh#39;);

  1. efghijkl

  2. efghIjKl

  3. EFGHIJKL

  4. EFGHIjKl

Answer: D

Question No: 107 – (Topic 2)

What has to be done, if anything, when the compiler warns that a variable may be uninitialized when used?

  1. Use the DFT(INITFILL) compiler option so the message will disappear.

  2. Make sure the variable has a valid content before using it.

  3. Initialize the variable to blank.

  4. Ignore the message.

Answer: B

Question No: 108 – (Topic 2)

What is the result of executing the following code?

DCL A CHAR(6) INIT(#39;100.50#39;); DCL B BIN FIXED(15) INIT(50);

B = A B;

  1. The value of B is 150.

  2. The value of B is 150.50.

  3. The value of B is 101.

  4. CONVERSION would be raised.

Answer: A

Question No: 109 – (Topic 2)

What is the value of A in PROC1 after calling PROC2?

PROC1: PROC;

DCL A BIN FIXED(15) INIT(0); CALL PROC2(A);

END;

PROC2: PROC(A); DCL A BIN FIXED(15); A = A 1;

END;

  1. 0

  2. 1

  3. The value of A is undefined.

  4. The compiler will generate an error message because A is defined more than once.

Answer: B

Question No: 110 – (Topic 2)

For which of the following data representations is a variable declared with the attribute WIDECHAR meant to be used?

  1. ASCII

  2. EBCDIC

  3. UTF-16

  4. GRAPHIC

Answer: C

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

Dumps4cert 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

Comments are closed.