Multiple choice technology programming languages

What is the default value for an INITIALIZE?

  1. All Blank values

  2. Zeroes to INT and spaces to ALPHA

  3. Spaces to INT and Zeroes to ALPHA

  4. Zeroes to INT and BLANK to ALPHA

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The INITIALIZE action in Master Craft sets default values for component properties. The default behavior assigns zeroes to integer (INT) type fields and spaces to alphanumeric (ALPHA) type fields, providing clean initial values that can be overwritten during component execution.

AI explanation

In COBOL, the INITIALIZE statement resets data items to defined default values based on their data type/category: numeric (INT/numeric-edited) fields are set to zero, and alphabetic/alphanumeric fields are set to spaces. This is the standard behavior absent a REPLACING clause specifying other values. 'All blank values' is wrong because numeric fields get zero, not blank; reversing which type gets zeroes vs. spaces (option C) is backwards; and 'BLANK to ALPHA' in option D is imprecise/non-standard phrasing versus the correct 'spaces to ALPHA'.