IBM Developing with IBM Enterprise PL/I C9050-042 Prüfungsfragen mit Lösungen:
1. In the following example, what value will be written to SYSPRINT, if anything, by the PUT statement in
PGM_A?
PGM_A: PROC;
DCL INPARM CHAR (12) INIT('FIRST CALL? ');
DCL P_OUT PTR;
DCL OUTPARM CHAR (10) BASED (P_OUT);
DCL PGM_B ENTRY (CHAR(12),PTR) EXTEPNAL;
CALL PGM_B (INPARM,P_OUT);
IF OUTPARM = 'YES' THEN
DO;
INPARM = 'FOLLOW ON';
CALL PGM_B (INPARM,P_OUT);
END;
ELSE
DO;
INPARM = 'NORMAL CALL';
CALL PGM_B (INPARM,P_OUT);
END;
PUT SKIP LIST(OUTPARM);
END;
PGM_B: PROC(INPARM,P_OUT);
DCL INPARM CHAR (12);
DCL P_OUT PTR;
DCL OUTPARM CHAR (12) STATIC INIT(");
P_OUT = ADDR(OUTPARM);
IF INPARM = 'FIRST CALL? ' THEN
OUTPARM = 'YES'; ELSE
IF OUTPARM = " THEN
OUTPARM = 'FIRST CALL';
END;
A) 'YES'
B) blanks
C) 'FIRST CALL'
D) The results are unpredictable.
2. What characterizes the hierarchical data model with respect to data access?
A) Data access can only be via an index.
B) Data access supports parent-child relationships.
C) Data access can only be sequential.
D) Data access supports tables.
3. It becomes apparent that the deadline to implement and test all the functions required for an application is
at risk. Which of the following is the best course of action?
A) Inform the team and the sponsor about the problem and discuss possible solutions.
B) Inform management that more people are required.
C) Inform management that the deadline has to be changed.
D) Inform management that some functions will not have been tested when the system is implemented.
4. Given the following declaration, how many variables are initialized to 0?
DCL 1 A DIM (10),
2 B,
3 C FIXED BIN(31) INIT (4, (*)0),
3 D FIXED DEC(5,2) NIT ((4)0),
3 E FIXED DEC (5,2) NIT (4, 0),
2 F FLOAT NIT (0);
A) 15
B) 7
C) 17
D) 23
5. Which of the following declarations uses the LEAST memory?
DCL 1 S1 ALIGNED,
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5),
2 D BIN FIXED(15);
DCL 1 S2 UNALIGNED,
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5),
2 D BIN FIXED(15);
DCL 1 S3 ALIGNED,
2 B BIN FIXED(31),
2 A CHAR(3),
2 D BIN FIXED(15),
2 C DEC FIXED(5);
DCL 1 S4 ALIGNED,
2 D BIN FIXED(15),
2 A CHAR(3),
2 B BIN FIXED(31),
2 C DEC FIXED(5);
A) S2
B) S4
C) S1
D) S3
Fragen und Antworten:
| 1. Frage Antwort: A | 2. Frage Antwort: B | 3. Frage Antwort: A | 4. Frage Antwort: A | 5. Frage Antwort: A |






1279 Kundenbewertungen

