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

Answer(s): A
QUESTION: 69
Given the following piece of code, which loop construct using WHILE or UNTIL wil give identical
output?

DCL I FIXED BIN (31);
DO I = 10 TO 1 BY -1;
PUT (I);
END;

A. I = 10;DO WHILE (I > 1);PUT (I);I = I - 1;END;
B. I = 10;DO WHILE (I >= 1);I = I - 1;PUT (I);END;
C. I = 10;DO UNTIL (I < 1);PUT (I);I = I - 1;END;
D. I = 10;DO UNTIL (I > 1);PUT (I);I = I - 1;END;

Answer(s): C
QUESTION: 70
What will be the values of the variables A, B, C and D after executing the following code?

DCL 1 XYZ,
2 A CHAR(4),
2 B BIN FIXED(31),
2 C DEC FIXED(7),
2 D PIC '999';
XYZ = ' ;

A. A is blank, B is zero, C is zero, D is zero
B. syntax error in XYZ = ' ;
C. CONVERSION wil be raised in XYZ = ' ;
D. A, B, C and D are zeros.

Answer(s): A
QUESTION: 71
Given the following piece of code, how many times is the loop executed?

DCL I FIXED BIN (31);
I = 20;
DO UNTIL (I = 0);
PUT (I);
I = I - 3;
END;

A. less than 6 times
B. 6
C. 7
Viewing page 25 of 52
Viewing questions 97 - 100 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!