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

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: 91 – (Topic 2)

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: A

Question No: 92 – (Topic 2)

Given the following declarations, which code is INVALID?

DCL (P,Q) POINTER;

DCL X CHAR(16) BASED(P);

  1. ALLOC X SET(P);FREE X;

  2. P = ALLOC(STG(X));FREE X;

  3. P = AUTO(STG(X));FREE X;

  4. ALLOC X SET(Q);P = Q;FREE X;

Answer: C

Question No: 93 – (Topic 2)

Which of the following will print a line containing quot;1quot; and then a line containing quot;DONEquot;?

  1. A: DO JX = 1 TO 4;IF JX = 2 THEN LEAVE A;PUT SKIP LIST( JX );END;PUT SKIP LIST( #39;DONE#39; );

  2. DO JX = 1 TO 4;IF JX = 2 THEN GOTO B;PUT SKIP LIST( JX );B: END;PUT SKIP LIST( #39;DONE#39; );

  3. DO JX = 1 TO 4;IF JX = 2 THEN EXIT;PUT SKIP LIST( JX );END;PUT SKIP LIST( #39;DONE#39; );

  4. DO JX = 1 TO 4;IF JX = 2 THEN STOP;PUT SKIP LIST( JX );END;PUT SKIP LIST( #39;DONE#39; );

Answer: A

Question No: 94 – (Topic 2)

Given the following code, how many times is the PUT statement executed? DCL I FIXED BIN (31) INIT (0);

L1:

DO LOOP;

I = 1;

DO LOOP; I = 1;

IF I gt;= 10 THEN LEAVE L1; PUT SKIP LIST (I);

END; END;

  1. 7

  2. 8

  3. 9

  4. 10

Answer: B

Question No: 95 – (Topic 2)

If FUNC_CODE is a CHAR(4) variable, then for the following code, what is the best declaration for GHU, GU, etc

SELECT( FUNC_CODE ); WHEN( GHU ) …

WHEN( GU ) …

etc END;

  1. DCL (GHU INIT(#39;GHU#39;), GU INIT(#39;GU#39;), … ) CHAR(4);

  2. DCL (GHU INIT(#39;GHU#39;), GU INIT(#39;GU#39;), … ) CHAR(4) STATIC;

  3. DCL (GHU VALUE(#39;GHU#39;), GU VALUE(#39;GU#39;), … ) CHAR(4);

  4. DCL (GHU INIT(#39;GHU#39;), GU INIT(#39;GU#39;), … ) CHAR(4) AUTOMATIC;

Answer: C

Question No: 96 – (Topic 2)

Which of the following builtins is the only one that returns a value?

  1. PLICKPT

  2. PLISRTC

  3. PLIRETV

  4. PLIRETC

Answer: C

Question No: 97 – (Topic 2)

Which of the following must be used to load and unload a program to and from main memory?

  1. FETCH and RELEASE

  2. LOAD and UNLOAD

  3. ALLOCATE and FREE

  4. GET and PUT

Answer: A

Question No: 98 – (Topic 2)

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

DCL A CHAR(5) INIT(#39;1000#39;); DCL B PIC #39;S99999#39; INIT(2000);

B = A B;

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

  1. THE VALUE OF B IS : 3000

  2. THE VALUE OF B IS : 03000

  3. THE VALUE OF B IS :

  4. Nothing will be printed because CONVERSION would be raised.

Answer: B

Question No: 99 – (Topic 2)

Which message will be displayed, if any, when the following code is executed with the Enterprise PL/I compiler using default compiler options?

DCL 1 STRUCTURE,

2 A CHAR(4),

2 P PTR; STRUCTURE = #39;#39;;

SELECT (P);

WHEN (NULL()) PUT LIST (#39;P IS NULL#39;);

WHEN (SYSNULL()) PUT LIST (#39;P IS SYSNULL#39;);

OTHERWISE PUT LIST (#39;P is something else#39;); END;

  1. P is SYSNULL

  2. P is NULL

  3. P is something else

  4. The compiler will generate an error for the assignment statement. Forcing execution will produce unpredictable results.

Answer: A

Question No: 100 – (Topic 2)

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

L FLAG CHAR;

%Flag = #39;TEST,OPT#39;;

L FUN ENTRY; FUN(Flag)

%FUN: PROC (S); DCL S CHAR;

IF INDEX(S, #39;TEST#39;) gt; 0 THEN

ANSWER (#39;put (quot;Test modus enteredquot;);#39;) SKIP;

IF INDEX(S, #39;OPT#39;) gt; 0 THEN ANSWER (#39;put (quot;Optimize modus enteredquot;);#39;) SKIP;

%END FUN;

  1. put (quot;Test modus enteredquot;);put (quot;Optimize modus enteredquot;);

  2. put (quot;Test modus enteredquot;);

  3. put (quot;Optimize modus enteredquot;);

  4. put (quot;Fun(Flag)quot;);

Answer: A

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