최신 IBM Certified Application Developer C9050-042 무료샘플문제:
1. A member of the team points out to the lead developer that there appears to be an error in the program
the lead developer has created. Which of the following is the most appropriate response from the lead
developer?
A) Thank the programmer, saying the program will be checked but asking him to check that the error is
not in his program.
B) Thank the programmer, indicating there is not time to correct the code and requesting that he do so.
C) Thank the programmer, indicating the code will be revised and provided to the team for review.
D) Thank the programmer, asking for details about the error and discussing the solution with him.
2. In which of the following examples will a dummy argument be passed?
A) DCL A EXT ENTRY (FIXED BINARY);
DCL (X,Y) FIXED BIN;
CALL A(X,Y);
B) PROC (A,B);
DCL (A,B) BIN FIXED;
END C;
END PGM;
C) DCL A EXT ENTRY (FIXED, BINARY);
DCL (X,Y) FIXED BIN;
CALL A(X,Y);
D) DCLA EXT ENTRY;
DCL (X,Y) FIXED BIN;
CALL A(X,Y);
E) PGM: PROC OPTIONS(MAIN);
DCL (X,Y) FIXED BIN;
CALL C (X,Y);
3. Given the following declaration, which code does NOT initialize C completely?
DCL 1 A,
2 B DIM (0:9),
3 C DIM (5) FIXED BIN (31),
3 D CHAR (100) VAR;
A) 3 C DIM (5) FIXED BIN(31) INIT ((HSOUND(C,1))( 0)),
B) 3 C DIM (5) FIXED BIN(31) INIT ((*)1),
C) 3 C DIM (5) FIXED BIN(31) INIT ((5)1,(*)2),
D) 3 C DIM (5) FIXED BIN(31) INIT ((50)1),
4. Given the following example, what will happen with the PUT SKIP DATA statement after the DO-loop?
PGM_A PROC OPTIONS(MAIN); DCL I FIXED SIN(31);
DCL MON CHAR (10);
DCL DAY(12) CHAP (2) INIT ('31','28','31', '30','31','30' 31','31','30' '31','30','31');
DO I = 1 TO 12;
MON = MON_FUNC(I);
PUT DATA (MON,DAY(I));
END;
PUT SKIP DATA (MON_ARR);
MON_FUNC: PROC(INP) RETURNS(CHAP(10));
DCL INP FIXED BIN (31);
DCL MON_APP(12) CHAR (10) INIT ('JANUARY ','FEBRUARY ','MARCH ', 'APRIL ','MAY
"JUNE 'JULY ''AUGUST ''SEPTEMBER','OCTOBER ','NOVEMBER ','DECEMBER ');
RETURN(MON_ARR(INP));
END;
END;
A) The compiler will issue no messages but the program will tail trying to execute the statement.
B) Twelve zeroes will be printed.
C) The compiler will issue a message for the statement and results are unpredictable.
D) A table of the months of theyearwill be printed.
5. Given the following declaration, what declaration of B would cause the structure Ato be invalid?
DCL K FIXED BIN (31) VALUE (10);
DCL P POINTER;
DCL 1 A BASED (P),
2 B FIXED BIN(31),
2 C DIM (K REFER (B)),
3 D FIXED BIN(31),
3 E CHAR (4);
ALLOCATE A;
A) 2B FIXED BIN(31) INIT (20),
B) 2B FIXED BIN (31) INIT (K),
C) 2B FIXED BIN (31),
D) 2B FIXED BIN(31) INIT (10),
질문과 대답:
질문 # 1 정답: D | 질문 # 2 정답: C | 질문 # 3 정답: A | 질문 # 4 정답: C | 질문 # 5 정답: A |