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

Given the following DECLARE statement, how many bytes wil be allocated to A?

DCL
1 A UNION,
2 C8 CHAR(8),
2 XB FIXED BIN(31),
2 BX BIT(16);

A. 2
B. 4
C. 8
D. 14

Answer(s): C
QUESTION: 53
Given the following program, the compiler wil produce the warning message "The structure
member A2 is declared without any data attributes. A level number may be incorrect.".
What is the best way to correct the program?

TEST: PROC OPTIONS(MAIN);
DCL
1 A,
3 A1 FIXED BIN(31),
3 A2,
3 A3 FIXED BIN(31),
3 A4 FIXED BIN(31);
END;

A. Add the attribute CHAR(8) to the declare for A2
B. Change the level number on the declare for A2 to 2
C. Change the level number on the declare for A3 to 4
D. Change the level numbers on the declares for A3 and A4 to 4

Answer(s): D
QUESTION: 54
Given the following code, what procedure will be accepted by the compiler?

DCL A DIM (10) CHAR (100) VAR BASED (P);
DCL P PTR;
ALLOCATE A;
CALL SUB (P);

A. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (10) CHAR (100) VAR BASED (P);END
SUB;
B. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (*) CHAR (100) VAR BASED (P);END SUB;
C. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (10) CHAR (*) VAR BASED (P);END SUB;
D. SUB: PROCEDURE (P);DCL P PTR;DCL A DIM (*) CHAR (*) VAR BASED (P);END SUB;
Viewing page 20 of 52
Viewing questions 77 - 80 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!