In which of the following examples will a dummy argument be passed?
A. DCLA EXT ENTRY;DCL (X,Y) FIXED BIN;CALL A(X,Y);
B. DCL A EXT ENTRY (FIXED, BINARY);DCL (X,Y) FIXED BIN;CALL A(X,Y);
C. DCL A EXT ENTRY (FIXED BINARY);DCL (X,Y) FIXED BIN;CALL A(X,Y);
D. PGM: PROC OPTIONS(MAIN);DCL (X,Y) FIXED BIN;CALL C (X,Y);
E. PROC (A,B);DCL (A,B) BIN FIXED;END C;END PGM;
Which of the following best describes an atomic transaction?
A. The database modifications must follow an `all or nothing' rule
B. Only valid data will be written to database
C. If one part of the transaction fails, the remainder may still be processed
D. Referential Integrity is maintained in the database
Which of the following is NOT part of the PL/I code review?
A. Training course for the program's author
B. Attendance of people with technical expertise
C. Decision whether the review object is a appropriate solution
D. Documentation of results of the review
A PL/I program performance analwer can best help identify which of the following?
A. Adequate code coverage
B. Changes needed to database tables
C. CPU hotspots and elapsed time percentages by procedure
D. Incorrect program logic
Which of the following would a non-technical manager be LEAST interested in regarding migration to Enterprise PL/I?
A. Amount of computer resources needed for the conversion
B. How many programs would be affected and the effort required
C. Whether training programs would be needed
D. Which Enterprise compiler options should be specified
Assuming there is no information about the duration or each table update and the programs are running in a multitasking environment, which of the following options will best minimize the chance for deadlocks?
A. Program A updates Table A, Table B and Table C in the specified order, and Program B updates Table B, Table C and Table A in the specified order.
B. Program A updates Table A, Table B and Table C in the specified order, and Program B updates Table C, Table B and Table A in the specified order.
C. All programs update Table A, Table B and Table C in the same order.
D. Programs update table A, Table B and Table C in random order.
A file containing FIXED BINARY fields that is written by a PL/I program on Intel Architecture is to be read by PL/I programs on Intel Architecture and on the mainframe. What must be changed in the program which reads the file on Intel architecture, if anything, for it to work correctly when it runs on the mainframe?
A. The program must declare the FIXED BINARY fields with the attribute NATIVE.
B. The program must declare the FIXED BINARY fields with the attribute LITTLEENDIAN.
C. The program must declare the FIXED BINARY fields with the attribute BIGEND IAN.
D. Nothing needs to be changed.
Given the following code, what statement will produce an E level diagnostic? %DCL ABC ENTRY;
%ABC: PROC (X,Y) STATEMENT;
DCL(X,Y) CHAR;
IF ^PARMSET(X) THEN NOTE('NO X `,0);
IF ^PARMSET(Y) THEN NOTE('NO Y `,8);
ANSWER('/* `!lX!!Yl!'C */'); %
END ABC;
A. ABC(A,);
B. ABC Y(B)X(A);
C. ABC(,B);
D. ABC (A,B);
What happens to AUTOMATIC variables when a procedure is called recursively?
A. The values from the previous invocation are lost.
B. The values from the previous invocation are saved and are available to the new invocation.
C. The values from previous invocations are preserved but can be overwritten in the new invocation.
D. The values from the previous invocation are saved and are available when the current invocation ends.
Given the following code, which set of statements will insert the new element into the doublylinked list after
the element pointed to by P?
DCL1X BASED,
2 FORWARD POINTER,
2 BACKWARD POINTER,
2 DATA FIXED BIN (31);
ALLOC X SET(Q);
A. Q->FORWARD = P;Q->BACKWARD = P->BACKWARD;P->FORWARD = QP->BACKWARD = Q;
B. Q->FORWARD = P-> FORWARD;Q->BACKWARD = P;P->FORWARD->BACKWARD = P;P>FORWARD = Q;
C. Q->FORWARD = P->FORWARD;Q->BACKWARD = P;P->FORWARD = Q;P->FORWARD>BACKWARD = Q;
D. P->FORWARD->BACKWARD = Q;P->FORWARD = Q;Q->FORWARD = P->FORWARD;Q>BACKWARD = P;