Free C9050-041 Exam Braindumps
Programming with IBM Enterprise PL/I (C6030-041) (page: 21)


Answer(s): A
QUESTION: 55
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));
%ACTIVATE F;
PUT (F(ABC));

A. PUT (F(ABC));PUT (A);
B. PUT (A);PUT (F(ABC));
C. PUT (A);PUT (A);
D. PUT (F(ABC));PUT (F(ABC));

Answer(s): A
QUESTION: 56
What code wil print the value of A to SYSPRINT?

DCL A DEC FIXED(5, 3) INIT(12.0);

A. PUT SKIP LIST('Value of A is:' !! A);
B. PUT SKIP LIST('Value of A is:'), (A);
C. PUT SKIP LIST('Value of A is:')(A);
D. PUT SKIP LIST A;

Answer(s): A
QUESTION: 57
Given the following piece of code, what will happen when the code is executed if STRINGSIZE
is not enabled?

DCL X CHAR (5) INIT ('ABCDE');
DCL Y CHAR (3) INIT (' );
Y = X;

A. Y receives the value 'ABC' and the next two bytes following Y's storage are overridden by
'DE'.
B. Y receives the value 'ABC' and 'DE' is not assigned to any storage area.
C. The assignment is not executed and program execution continues after the assignment.
D. The assignment is not executed and program execution abends.

Answer(s): B
Viewing page 21 of 52
Viewing questions 81 - 84 out of 146 questions


Post your Comments and Discuss IBM C9050-041 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!