Welcome to download the newest Dumpsoon 070-347 dumps:
100% Valid And Pass With latest IBM C6030-042 exam dumps, you will never fail your IBM C6030-042 exam.All the questions and answers are updated and added to the new version timely by our experts.Also now Flydumps is offering free IBM C6030-042 exam VCE player and PDF files for free on their website.
QUESTION 17
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?
A. Check the SQLCODE after each EXEC SQL FETCH statement.
B. Check the SQLCODE after each EXEC SQL OPEN / CLOSE statement.
C. Set the EOF bit to `1’B, if SQLCODE = 100 (not found).
D. Check the CURRENT SQLID.
Correct Answer: D
QUESTION 18
What could be used when a structure is passed to a subroutine to verify that the area the structure occupies in storage has not been overwritten?
A. Structure is passed as a pointer.
B. Structure has eyecatchers at start and at end.
C. Structure has a length field at start.
D. Structure is passed as an aggregate.
Correct Answer: B
QUESTION 19
In the following example what value will be printed to SYSPRINT, if any, from the PUT LIST in PGM_A?
PGM_A PROC;
DCL INPARM CHAR (10) INIT(‘FIRST CALL);
DCL P_OUT PTR;
DCL OUTPARM CHAR(10) BASED (P_OUT);
DCL PGM_B ENTRY(CHAR(10),PTR) EXTERNAL:
CALL P0MB (INPARM,P OUT);
IF OUTPARM = `RESULT `THEN
DO;
INPARM = “;
CALL PGM_B (INPARM,P_OUT);
END;
PUT LIST(OUTPARM);
END;
PGM_B: PROC(INPARMP_OUT);
DCL INPARM CHAR (10);
DCL P_OUT PTR;
DCL OUTPARM CHAR (10) INIT(“);
P_OUT = ADDR(OUTPARM);
IF INPARM =`FIRST CALL THEN
OUTPARM = `RESULT `;
ELSE
OUTPARM = `NO RESULT’;
END;
A. Blanks
B. `NO RESULT’
C. Unpredictable
D. `RESULT’
Correct Answer: C
QUESTION 20
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
Correct Answer: A
QUESTION 21
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),
B. 2B FIXED BIN (31) INIT (K),
C. 2B FIXED BIN (31) INIT (10),
D. 2B FIXED BIN (31) INIT (20),
Correct Answer: D QUESTION 22
Program A calls program B with PC as a parameter defined BIN FIXED (31 .0). Program B sets PC as follows:
0 OK 4 WARNING 8 ERROR
Which of the following is the most appropriate statement for testing the PC variable?
A. IF (RC ^= 0) & (RC ^= 4) THEN PUT SKIP LIST(`ERROR IN B’);ELSE IF RC> 8 THEN PUT SKIP LIST (‘UNKNOWN VALUE FROM B);
B. SELECT (RC);WHEN (0, 4);OTHERWISEPUT SKIP LIST(‘UNKNOWN VALUE FROM B’);END;
C. IF (RC >4) THEN PUT SKIP LIST(‘ERROR IN B’);ELSE PUT SKIP LIST(‘UNKNOWN VALUE FROM B’);
D. SELECT (RC); WHEN (0,4); WHEN (8) PUT SKIP LIST (`ERROR IN B’);OTHERWISE PUT SKIP LIST (‘UNKNOWN VALUE FROM B’);END;
Correct Answer: D QUESTION 23
Which of the following statements about the newest PL/l compiler is NOT suitable to convince a stakeholder that migration to the new PL/I compiler is necessary?
A. The new compiler takes advantage of the current machine instruction set.
B. The new compiler provides new language features.
C. The new compiler will tolerate more erroneous code.
D. The new compiler is necessary because current versions of DB2 and CICS only officially support compilers which are “in service”.
Correct Answer: C QUESTION 24
What are the requirements on data to apply parallelization in a program?
A. It should be partition able.
B. It should follow the Relational model.
C. It should follow the Hierarchical model.
D. It should follow the Object model.
Correct Answer: A QUESTION 25
In which of the following groups of compiler options could all the options specified cause the compiler to generate code which requires more time at execution?
A. ATTRIBUTES(FULL),XREF(FULL),DEFAULT (EVENDEC,DUMMY(UNALIGNED)),OFFSET
B. OPTIMIZE(0),NOREDUCE,PIREFIX(SIZE,SUBSCRIPTRANGE)
C. OPTIMIZE(2),DEFAULT(REORDER,NOLAXDCL,NOLAXCTL),STORAGE,MMTEMP(1000)
D. APCH(5),BIFPREC(31),NOTESTMTUNE(5),NOSERVICE
Correct Answer: B
QUESTION 26
Given the following declaration, how many bytes will be occupied by the structure?
DCL 1 A ALIGNED, 2 B FIXED BIN (31), 2 C CHAR (1), 2 D FIXED BIN (31), 2 E FIXED DEC (5,2), 2 F POINTER;
A. 16
B. 19
C. 20
D. 24
Correct Answer: C
QUESTION 27
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
Correct Answer: C
QUESTION 28
Given the following code, what are the default attributes of DSET1 after the READ statement?
DCL DATA CHAR (80);
DCL DSET1 FILE;
READ FILE(DSET1) INTO(DATA);
A. SEQUENTIAL RECORD INPUT
B. STREAM INPUT
C. DIRECT INPUT
D. KEYED RECORD INPUT
Correct Answer: A
QUESTION 29
Which compiler option causes the compiler to flag any IF, WHILE, UNTIL and WHEN clauses that do not have the attributes BIT(1) NONVARYING?
A. RULES(NOLAXWHILE)
B. RULES(NOLAXIF)
C. RULES(NOLAXUNTIL)
D. RULES(NOLAXWHEN)
Correct Answer: B
QUESTION 30
A junior programmer has written a 3000 statement program and has asked the team lead for help in determining how to review it. Which of the following is the most appropriate response for the team lead?
A. Provide the programmer with a list of programming standards.
B. Request that the programmer set up an informal walkthrough with key members of the team.
C. Inform the programmer that a review is not necessary.
D. Ask the programmer to compile it and run some tests to see if it can be broken.
Correct Answer: B
QUESTION 31
What is a program specification document?
A. A description of what the program does and how it can be used
B. A description of how the program does its work
C. The pseudocode of the program
D. The history of changes of the program and how it was used
Correct Answer: A
QUESTION 32
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.
Correct Answer: C
QUESTION 33
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);
IBM C6030-042 exam sample questions are available from FLYDUMPS has been hand crafted by our team of practicing IBM C6030-042 exam. We at FLYDUMPS provides comprehensive IBM C6030-042 exam sample questions for your prompt success. Our IBM C6030-042 exam sample questions are prepared by industry Experts who bring the latest Study Materials. If you think that you can face the unique challenges in your career, challenges that other IBM C6030-042 FLYDUMPS professionals have already beaten, then you should get rapidshare download test preparation help for the exam from practice test.
Welcome to download the newest Dumpsoon 070-347 dumps: http://www.dumpsoon.com/070-347.html
http://www.bsabio.org/cisco-600-199-doc-provide-new-cisco-600-199-questions-with-accurate-answers/