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

Topic 2, B


QUESTION: 74
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;

A. 0
B. 1
C. The value of A is undefined.
D. The compiler will generate an error message because A is defined more than once.

Answer(s): B
QUESTION: 75
What will be printed to SYSPRINT, if anything, after executing the following code?

DCL A PIC '9999';
A = ' 123';
PUT SKIP LIST('VALUE OF A IS :' !! A);

A. VALUE OF A IS : 123
B. VALUE OF A IS :0123
C. VALUE OF A IS :123
D. No value will be displayed because the assignment statement will cause a conversion error.

Answer(s): B
QUESTION: 76
Which of the following wil print a line containing "1" and then a line containing "DONE"?

A. A: DO JX = 1 TO 4;IF JX = 2 THEN LEAVE A;PUT SKIP LIST( JX );END;PUT SKIP LIST(
'DONE' );
B. DO JX = 1 TO 4;IF JX = 2 THEN GOTO B;PUT SKIP LIST( JX );B: END;PUT SKIP LIST(
'DONE' );
C. DO JX = 1 TO 4;IF JX = 2 THEN EXIT;PUT SKIP LIST( JX );END;PUT SKIP LIST( 'DONE' );
D. DO JX = 1 TO 4;IF JX = 2 THEN STOP;PUT SKIP LIST( JX );END;PUT SKIP LIST( 'DONE'
);

Answer(s): A
Viewing page 27 of 52
Viewing questions 105 - 108 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!