Given the following code, which DECLARE should NOT be used for a reentrant program? DCL B BIN FIXED(31,0) INIT (4);
A = B;
A. DCL A BIN FIXED (31,0) INIT(0);
B. DCL A BIN FIXED (31,0) INIT(0) STATIC;
C. DCL A BIN FIXED (31,0) INIT(0) AUTOMATIC;
D. DCL A BIN FIXED (31,0);
What does it mean that an interface is synchronous?
A. Requesting program must wait for a reply
B. Requesting program always receives immediate response
C. Requests are processed randomly
D. Requests are processed in parallel
A given PL/I program has a big nesting depth. Which of the following measures will help to reduce the nesting depth in most cases?
A. Using SELECT constructs instead of If-THEN-ELSE
B. Using DO-WHILE as the only loop technique
C. Avoiding ELSE clauses
D. Avoiding OTHER clauses
The following function converts a character string to uppercase. What is the best way to improve the performance?
SET_TO_UPPERCASE: PROC(CHARSTR) RETURNS (CHAR(120) VARYING); DCL CHARSTR CHAR
(120)
VARYING;
DCL UCCHAR(26) INIT('ASCDEFGHIJKLMNOPQRSTUVWXYZ');
DCL LCCHAR(26) INlT('abcdefghijkImnopqrstuvxy'z');
DCL RCHAR(120) VARYING INIT(");
R = TRANSLATE(CHARSTR,UC,LC);
RETURN(R);
END SET_TO_UPPERCASE;
A.
Use VALUE on the declares for UC and LC.
B.
Declare variables UC and LC as STATIC.
C.
Use the UPPERCASE function instead of SET_TO_UPPERCASE.
D.
RETURN(TRANSLATE(CHARSTR,UC,LC)) to avoid the unnecessary assignment to R.
What happens after executing the following code, assuming the input file has more than 1 record?
DCL INPFILE FILE RECORD INPUT ENV(VB RECSIZE(100)); DCL P PTR; DCL B CHAR(100) VARYING
BASED(P);
DCLC CHAR(110) VARYING BASED(P);
READ FILE(INPFILE) SET(P);
C=B!! 'EXTENDED
READ FILE(INPFILE) SET(P);
A. Two records are read.
B. The results are unpredictable.
C. Protection exception because of the reference to B.
D. ENDFILE condition is raised on the second read.
Which software quality describes the ability of software to cooperate with other applications?
A. Reusability
B. Interoperability
C. Scalability
D. Portability
Which of the following steps is NOT required to use the IBM Debug Tool on a PL/I program?
A. Compile with TEST option
B. Write an Language Environment user condition handler
C. Plan points where the program should stop during testing
D. Have the source code available
The following code is supposed to find the earlier date between today's date and the given input date
which is input to the program in YYYYMMDD format. What happens when the program is executed?
DCL DATE JN CHAR (8);
DCL DAT E_MIN CHAR (8);
GET (DATE IN);
DATE_MIN = MIN(SUBSTR(DATETIME(), 1, 8), DATE IN);
A. The program ends abnormally at runtime.
B. The statement works as intended.
C. The resulting value consists of 8 blanks.
D. The resulting value consists or a mixing or numbers and blanks.
An external subroutine procedure requires 10 variables belonging to an input file and 10 variables belonging to an output file. What is best practice in passing these variables to the procedure?
A. Pass the 20 variables individually in the parameter list.
B. Integrate the 20 variables in one structure and pass the address of the structure in the parameter list.
C. Declare the 20 variables EXTERNAL in both the calling program and in the procedure called and pass no variable in the parameter list.
D. Integrate the 10 variables belonging to the input file in one structure and the 10 variables belonging to the output file in another one and pass the addresses of them as parameters to the procedure.
What is the output of the following program?
DCL A AREA(8000);
DCL 1 STR1 BASED(P),
2 STR1_LGTH BIN FIXED(31),
2 STR_CHAR CHAR(ALLOC_LGTH REFER(STR1_LGTH));
DCL ALLOC_LGTH BIN FIXED(31);
DCL I FIXED BIN(31);
DCL P PTR;
ALLOC_LGTH = 100;
DO I = 1 TO 10;
ALLOC STR1 IN(A);
END;
PUT SKIP LIST(CSTG(A));
A. 1016
B. 1040
C. 1056
D. 8000
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only IBM exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C6030-042 exam preparations and IBM certification application, do not hesitate to visit our Vcedump.com to find your solutions here.