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

What will be output by the following program?

TEST: PROC OPTIONS(MAIN);

DCL A CONTROLLED FIXED BIN(31);

ALLOC A; ALLOC A; CALL SUB(A);

PUT SKIP LIST( ALLOCN(A) );

SUB: PROC( B );

DCL B CONTROLLED FIXED BIN(31); FREE B;

ALLOC B; ALLOC B; FREE B; ALLOC B; END; END;

  1. 2

  2. 3

  3. 4

  4. 5

Answer: B

Question No: 72 – (Topic 1)

Which of the following is a restriction using the BYVALUE attribute?

  1. It can be specified only for scalar arguments and parameters that can be passed in registers.

  2. It can be specified only for scalar arguments and parameters with a size of four bytes.

  3. It can be specified only for aggregate arguments and parameters.

  4. It can be specified only for scalar arguments and parameters whose lengths and sizes are known at compile time.

Answer: D

Question No: 73 – (Topic 1)

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

DCL A CHAR(10) INIT(#39;12A4BABCAB#39;); DCL B BIN FIXED(31) INIT(0);

B = INDEX(A,#39;AB#39;);

  1. 2

  2. 3

  3. 6

  4. 9

Answer: C

Topic 2, B

B

Question No: 74 – (Topic 2)

Given the following code, what will happen if the variable MAX has a value larger than 32767?

DCL I FIXED BIN (15); DCL MAX FIXED BIN (31);

DO I = 1 TO MAX;

  1. The loop will stop executing when I reaches a value of 32767.

  2. The loop will stop executing when I reaches the value in MAX.

  3. The loop will stop executing when I reaches a value equivalent to MAX 1.

  4. The loop will stop executing with an ABEND or run infinitely.

Answer: D

Question No: 75 – (Topic 2)

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

DCL DDOUT FILE RECORD OUTPUT;

DCL OUT_CHAR CHAR(500) VARYING INIT(#39;This is a varchar test#39;); OPEN FILE(DDOUT);

WRITE FILE(DDOUT) FROM(OUT_CHAR);

  1. One record with a length of 22 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 4096 will be written to the output file.

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

Answer: A

Question No: 76 – (Topic 2)

Given the following code:

DCL (K, L) FIXED BIN (31) INIT (0);

DCL SUB ENTRY( FIXED BIN(31) BYADDR, FIXED BIN(31) ) OPTIONS(BYVALUE);

CALL SUB(K, L);

PUT(K, L);

and the following external procedure:

SUB: PROCEDURE(K, L) OPTIONS( BYVALUE ); DCL (K BYADDR, L) FIXED BIN(31);

K = 10;

L = 10; END;

Which numbers are output by the PUT statement?

A. 0, 0

B. 0, 10

C. 10, 0

D. 10, 10

Answer: C

Question No: 77 – (Topic 2)

Given the following code, which code is NOT equivalent?

DCL A CHAR (1);

SELECT (A);

WHEN (#39;A#39;) PUT (#39;1#39;);

WHEN (#39;B#39;) PUT (#39;2#39;);

WHEN (#39;C#39;) PUT (#39;3#39;); OTHER;

END;

  1. SELECT (A);WHEN (#39;B#39;) PUT (#39;2#39;);WHEN (#39;A#39;) PUT (#39;1#39;);WHEN (#39;C#39;) PUT (#39;3#39;);OTHER;END;

  2. SELECT (A);WHEN (#39;A#39;) PUT (#39;1#39;);WHEN (#39;C#39;) PUT (#39;3#39;);WHEN (#39;B#39;) PUT (#39;2#39;);END;

  3. IF A = #39;A#39; THEN PUT (#39;1#39;);IF A = #39;B#39; THEN PUT (#39;2#39;);IF A = #39;C#39; THEN PUT (#39;3#39;);

  4. IF A = #39;C#39; THEN PUT (#39;3#39;);IF A = #39;B#39; THEN PUT (#39;2#39;);IF A = #39;A#39; THEN PUT (#39;1#39;);

Answer: B

Question No: 78 – (Topic 2)

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

DCL A CHAR(7) INIT (#39;ABCDEFG#39;); DCL B CHAR(10) INIT (#39;0123456789#39;);

SUBSTR(A,4) = SUBSTR(B,5,3);

A. #39;ABC4567#39;

  1. #39;ABC456G#39;

  2. #39;ABCD456#39;

  3. #39;ABC456 #39;

Answer: D

Question No: 79 – (Topic 2)

How should the file ACCOUNT be declared if the program first writes records to ACCOUNT and afterwards reads them back from ACCOUNT?

  1. DCL ACCOUNT FILE RECORD INPUT;

  2. DCL ACCOUNT FILE RECORD OUTPUT;

  3. DCL ACCOUNT FILE RECORD (INPUT,OUTPUT);

  4. DCL ACCOUNT FILE RECORD;

Answer: D

Question No: 80 – (Topic 2)

What must be done, if anything, before calling the program U if it is declared as follows ?

DCL U ENTRY OPTIONS (FETCHABLE);

  1. FETCH U;

  2. ALLOCATE U;

  3. LOAD U;

  4. Nothing needs to be done.

Answer: D

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.