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;What will be printed, if anything, to SYSPRINT after executing the following code?
DCL A FIXED CONTROLLED;
DCL P PTR;
DCL X FIXED BASED(P);
ALLOC A;
A = 1;
ALLOC A;
A = 2;
P = ADDR(A);
ALLOC A;
A = 3;
P = ADDR(A);
ALLOC A;
A = 4;
FREE A;
FREE A;
PUT DATA(X);
A. 2Which of the following techniques, if any, can be used to parallelize a PL/I program?
A. Attach threads to pieces or work that are independent from othersWhich software model is LEAST appropriate it requirements keep changing?
A. Waterfall modelAn 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.The lead developer has reviewed the team's progress and determined that the deadline of one week cannot be met since all of the modules have not been thoroughly tested. Which of the following is the best action for the lead developer to take?
A. Ask management for more staff to ensure the testing is completed by the deadline.Given the following pseudocode example, at which label should an unconditional COMMIT be placed assuming there is a one-to-many relationship between FIL01 and FIL02 and FlL01 contains several thousand records? Read record from file FIL01
A. DO while there are records in FIL01IF record in FIL01 specifies update THENDO for all records matching in FIL02Update record in FIL02 with information from FIL01 end DOWhat characterizes the hierarchical data model with respect to data access?
A. Data access supports parent-child relationships.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)),OFFSETWhat would the attribute table in a compile list be used for when looking at the variable in a dump?
A. Find where variable is usedNowadays, 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.