What is the difference between a figurative constant and a user-defined constant in COBOL?
- Figurative constants are declared using the CONSTANT keyword, while user-defined constants use the VALUE clause
- Figurative constants are numeric, and user-defined constants are alphanumeric
- Figurative constants represent predefined values like ZERO and SPACE, while user-defined constants are explicitly defined by the programmer using the VALUE clause
- There is no difference between figurative and user-defined constants in COBOL
Figurative constants in COBOL represent predefined values like ZERO, SPACE, etc. User-defined constants are explicitly defined by the programmer using the VALUE clause in the DATA DIVISION.
Loading...
Related Quiz
- What happens when a CONTINUE statement is encountered during program execution?
- In COBOL, what are the typical sorting criteria you can specify while using the SORT verb?
- How do you handle exceptions and errors in the COBOL Procedure Division?
- When using a PERFORM loop with the VARYING clause, the _______ clause defines the initial and final values for the loop control variable.
- Which file organization type is best suited for situations where records are frequently added and deleted?