Skip to main content

C6030-042 Real Exam Questions

Developing with IBM Enterprise PL/I

137 questions available · Page 1 of 14

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

Which of the following structures will NOT contain padding bytes if the PL/I default for alignment is applied?

  1. A

    DCL 1 A,2 B FLOAT DEC (16),2 C FLOAT DEC (5,2),2 D CHAR (3),2 E FIXED BIN (31),2 F FLOAT
    DEC (16);

  2. B

    DCL 1 A,2 B FLOAT DEC (16),2 F FLOAT DEC (16),2 E FIXED BIN (31),2 C FIXED DEC (5,2),2 D
    CHAR (3);

  3. C

    DCL 1 A,2 E FIXED BIN (31),2 C FIXED DEC (5,2),2 B FLOAT DEC (16),2 F FLOAT DEC (16),2 D
    CHAR (3);

  4. D

    DCL 1 A,2 B FLOAT DEC (16),2 F FLOAT DEC (16),2 C FIXED DEC (5,2),2 E FIXED BIN (31),2 D
    CHAR (3);

Show answer and explanation

Correct answer: B

Question 2 Single choice

What is a program internal specification document?

  1. A

    A description of how the program can be used

  2. B

    A description of how the program does its work

  3. C

    The history of changes of the program and how it worked

  4. D

    A summary of the program's performance data

Show answer and explanation

Correct answer: B

Question 3 Single choice

Given the following code:
DCL INDATA FILE RECORD INPUT;
DCL INSTRUC CHAR(100);
DCL EOF BIT(1) INIT('0'B);
ON ENDFILE(INDATA) EOF = `1'B;
OPEN FILE(INDATA);
READ FILE(INDATA) INTO(INSTRUC);
DO WHILE (^EOF);
CALL SR_PROCESS;
READ FILE(INDATA) INTO(INSTRUC);
END;
CLOSE FILE(INDATA);

If the database (input file) changes from OS-PS to DB2 view and the necessary syntax has been changed accordingly, which of the following DB2-related steps is NOT additionally required to guarantee the same level of stability and functionality?

  1. A

    Check the SQLCODE after each EXEC SQL FETCH statement.

  2. B

    Check the SQLCODE after each EXEC SQL OPEN / CLOSE statement.

  3. C

    Set the EOF bit to `1'B, if SQLCODE = 100 (not found).

  4. D

    Check the CURRENT SQLID.

Show answer and explanation

Correct answer: D

Question 4 Single choice

Which of the following compile list sections would be used to find the location of a static variable in a dump?

  1. A

    Attribute/Xref Table

  2. B

    Source Listing

  3. C

    Table of Offsets and Statement Numbers

  4. D

    Storage Offset Listing

Show answer and explanation

Correct answer: D

Question 5 Single choice

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;

  1. A

    3 C DIM (5) FIXED BIN (31) INIT ((50)1),

  2. B

    3 C DIM (5) FIXED BIN (31) INIT ((5)1,(*)2),

  3. C

    3 C DIM (5) FIXED BIN (31) INIT ((HSOUND(C,1))( 0)),

  4. D

    3 C DIM (5) FIXED BIN (31) INIT ((*)1),

Show answer and explanation

Correct answer: C

Question 6 Single choice

Given the following declarations, which is the WORST way of setting D from 5? DCL 1 S, 2 A(100) CHAR(1),
2 B(100) CHAR(2),
2 C(100) CHAR(3);
S = ";
DCL D CHAR(600);
DCLI BIN FIXED(31);

  1. A

    D = STRING(S);

  2. B

    CALL PLIOVER(ADDR(D)ADDR(S),600);

  3. C

    DO I = 1 TO 100;SUBSTR(D,I,1) = S.A(l);SUBSTR(D,1 01 + ((I-1) *2),2) =

  4. D

    B(I);SUBSTR(D,301 + ((I-1) *3),3) = S.C(I);END;

  5. E

    D = STRING(A) !! STRING(S) !! STRING(C);

Show answer and explanation

Correct answer: C

Question 7 Single choice

Which of the following is generally NOT an area of concern when calling a program written in another language from PL/I?

  1. A

    Storage management

  2. B

    Acceptable calling conventions

  3. C

    Data mapping

  4. D

    Condition handling

Show answer and explanation

Correct answer: A

Question 8 Single choice

A compiler listing annotated with execution counts per statement helps identify all of the following EXCEPT

  1. A

    Potentially miscoded conditions in IFs, WHEREs, WHILEs, and UNTILs

  2. B

    Unexecuted statements and procedures

  3. C

    Calls to library routines

  4. D

    Opportunities for code optimization

Show answer and explanation

Correct answer: C

Question 9 Single choice

Given the following (incomplete) code, how is Q to be declared in order to allocate X in A?

DCL A AREA;
DCL Q ...
DCL X FIXED BIN (31) BASED (Q);
ALLOCATE X;

  1. A

    ... OFFSET(A);

  2. B

    ... POINTER;

  3. C

    ... OFFSET;

  4. D

    ... BASED(A);

Show answer and explanation

Correct answer: A

Question 10 Single choice

In which of the following examples will a dummy argument be passed?

  1. A

    DCLA EXT ENTRY;DCL (X,Y) FIXED BIN;CALL A(X,Y);

  2. B

    DCL A EXT ENTRY (FIXED, BINARY);DCL (X,Y) FIXED BIN;CALL A(X,Y);

  3. C

    DCL A EXT ENTRY (FIXED BINARY);DCL (X,Y) FIXED BIN;CALL A(X,Y);

  4. D

    PGM: PROC OPTIONS(MAIN);DCL (X,Y) FIXED BIN;CALL C (X,Y);

  5. E

    PROC (A,B);DCL (A,B) BIN FIXED;END C;END PGM;

Show answer and explanation

Correct answer: B