When a program reads a variable record format dataset via LOCATE mode, what happens?
A. READ pointer points to the length bytes in the buffer.
B. READ pointer points to first data byte in the buffer.
C. READ data is placed in specified area.
D. The ENDFILE condition is never raised.
Requirement:
The function LEAPYEAR evaluates a given 4-digit number and returns `1'B if it is a leap year, `0'B if it is
not. This function is supposed to work for the years 2004 to 2015. Leap years occur every four years,
except for years ending in 00 that are not divisible by 400. Which of the following solutions meets the
requirement and does NOT need to be changed if the requirement changes to: The function is supposed
to work for the years 1900 to 3000.
A. LEAPYEAR: PROC(YEAR) RETURNS(BIT(1));DCL YEAR PlC `9999';DCL (MOD,VERIFY) BUILTIN;SELECT;WHEN (VERIFY(YEAR,'0l 23456789') ^= 0) RETURN('0'B);WHEN (MOD (YEAR,100) = 0)RETURN('0'B);WHEN (MOD(YEAR,4) = 0)RETURN('1'B);OTHERRETURN('0'B);END;END LEAPYEAR;
B. LEAPYEAR: PROC(YEAR) RETURNS(BIT(1));DCL YEAR PlC `9999';DCL VERIFY BUILTIN;IFVERIFY(YEAR,0123456789)^= 0 THEN RETURN('0'B);SELECT(YEAR);WHEN (2004) RETURN('1'B);WHEN (2008) RETURN('1'B);WHEN (2012) RETURN('1'B);OTHER RETURN ('0'B);END;END LEAPYEAR;
C. LEAPYEAR: PROC(YEAR) RETURNS(BIT(1));DCL YEAR PlC `9999';DCL (MOD,VERIFY) BUILTIN;SELECT;WHEN (VERIFY(YEAR `0123456789') ^= 0) RETURN('0'B);WHEN (MOD (YEAR,400) = 0) RETURN('l'B); WHEN (MOD(YEAR,100) = 0) RETURN('0'B); WHEN (MOD(YEAR,4) = 0) RETURN('1'B); OTHER RETURN('0'B);END;END LEAPYEAR;
D. LEAPYEAR: PROC(YEAR) RETURNS(BIT(1));DCL YEAR PlC `9999';DCL (MOD,VERIFY) BUILTIN;SELECT;WHEN (VERIFY(YEAR `0123456769') ^= 0) RETURN('0'B); WHEN (MOD (YEAR,100) = 0) RETURN('0'B);WHEN (MOD(YEAR,400) = 0) RETURN('1'B);WHEN (MOD(YEAR,4) = 0) RETURN('1'B);OTHERRETURN('0'B);END;END LEAPYEAR;
Which of the following declarations is NOT accepted by the compiler?
A. DCL A (3,3) FLOAT DEC (16) INIT ((3)(3)1);
B. DCL B (3,3) FLOAT DEC (16) INIT ((3)(1), (2)(1,1,1));
C. DCL C (3,3) FLOAT DEC (16) INIT ((9)1);
D. DCL D (3,3) FLOAT DEC (16) INIT ((*)1);
Which of the following characters may NOT be translated correctly when moving between code pages, character sets and platforms?
A. A
B. +
C. 9
D. ¦è
Which of the following is LEAST likely to be performed by a batch program?
A. Sorting
B. Sequential file processing
C. User interaction
D. Production of pay checks
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.
Which of the following is NOT a characteristic of the RANDOM builtin function?
A. RANDOM can be called without any parameters.
B. The values generated by RANDOM are uniformly distributed between 0 and 1, where 0 < random() < 1.
C. RANDOM can be called with an optional SEED to avoid getting repeatable results.
D. RANDOM can be called with an optional upper bound.
Which of the following is the most likely reason to use a debugger in a production environment?
A. Enhance performance
B. Ensure data integrity
C. Investigate error situations
D. Test a program
What is a program internal specification document?
A. A description of how the program can be used
B. A description of how the program does its work
C. The history of changes of the program and how it worked
D. A summary of the program's performance data
Which of the following is generally NOT an area of concern when calling a program written in another language from PL/I?
A. Storage management
B. Acceptable calling conventions
C. Data mapping
D. Condition handling
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.