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

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

Which of the following is NOT a valid way to set a pointer P to zero?

  1. UNSPEC(P) = #39;#39;B;

  2. P = PTRVALUE(0);

  3. P = SYSNULL();

  4. P = 0;

Answer: D

Question No: 62 – (Topic 1)

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

%F: PROC(S) RETURNS(CHAR);

DCL S CHAR;

RETURN (SUBSTR(S, 1, 1));

%END;

PUT (F(ABC));

TIVATE F; PUT (F(ABC));

  1. PUT (F(ABC));PUT (A);

  2. PUT (A);PUT (F(ABC));

  3. PUT (A);PUT (A);

  4. PUT (F(ABC));PUT (F(ABC));

Answer: A

Question No: 63 – (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 P PTR;

DCL 1 INSTR BASED(P), 2 A CHAR(100),

2 B CHAR(100);

ALLOCATE INSTR; OPEN FILE(DDIN);

READ FILE(DDIN) INTO(INSTR);

  1. One record will be read into the buffer and the pointer will be set accordingly.

  2. One record will be read into the structure INSTR.

  3. READ INTO cannot be used on a BASED structure.

  4. Program will abend because P has not been properly initialized.

Answer: B

Question No: 64 – (Topic 1)

Given the following code, what declaration of I will cause an infinite loop under default condition enablement?

DO I = 1 TO 99;

  1. DCL I FIXED BIN (7);

  2. DCL I FIXED DEC (3,0);

  3. DCL I PIC#39;99#39;;

  4. DCL I FLOAT;

Answer: C

Question No: 65 – (Topic 1)

In which of the following cases is it possible to change the value of a variable in a routine when it is passed to the routine as an argument?

  1. The argument is declared as FIXED BIN(15), and the corresponding parameter is declared as FIXED BIN(15) BYVALUE.

  2. The argument is declared as FIXED BIN(15), and the corresponding parameter is declared as FIXED DEC(7) BYADDR.

  3. The argument is declared as FIXED DEC(7), and the corresponding parameter is declared as FIXED DEC(7) BYADDR.

  4. The argument is declared as CHAR(10) VAR, and the corresponding parameter is declared as CHAR(10).

Answer: C

Question No: 66 – (Topic 1)

What is the result, if any, of executing the following code? DCL A BIT(1) INIT(#39;0#39;B);

DCL B BIT(1) INIT(#39;0#39;B);

DCL C BIT(1) INIT(#39;1#39;B);

A = B ! C;

  1. The value of A is #39;0#39;B

  2. The value of A is #39;1#39;B.

  3. The value of A is unpredictable.

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

Answer: B

Question No: 67 – (Topic 1)

What is the most appropriate way to assign a value to variable A?

DCL A BIN FIXED(15);

A. A = #39;17#39;;

B. A = 17.29; C. A = #39;1729#39;X; D. A = 17;

Answer: D

Question No: 68 – (Topic 1)

Given the following code, what procedure will be accepted by the compiler?

DCL A DIM (10) CHAR (100) VAR BASED (P); DCL P PTR;

ALLOCATE A; CALL SUB (P);

  1. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (10) CHAR (100) VAR BASED (P);END SUB;

  2. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (*) CHAR (100) VAR BASED (P);END

    SUB;

  3. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (10) CHAR (*) VAR BASED (P);END SUB;

  4. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (*) CHAR (*) VAR BASED (P);END SUB;

Answer: A

Question No: 69 – (Topic 1)

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

DCL A CHAR(6) INIT (#39;ABCDEF#39;); DCL B CHAR(10) INIT (#39;0123456789#39;);

A = SUBSTR(B,5,3);

A. #39;456 #39;

B. #39; 456#39;

  1. #39;456DEF#39;

  2. #39;ABC456#39;

Answer: A

Question No: 70 – (Topic 1)

Given the following code, with what attribute should the variable EOF be declared?

DO WHILE(^EOF);

  1. FIXED BIN (7)

  2. BIT (1)

  3. CHAR (1)

  4. FIXED DEC (3)

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