In a COBOL "IF" statement, what happens if the condition is not met?
- An error is generated
- The "ELSE" statement is executed
- The control transfers to the next statement outside the "IF" block
- The program terminates abruptly
If the condition in a COBOL "IF" statement is not met, the control transfers to the next statement outside the "IF" block. If an "ELSE" statement is present, it will be executed; otherwise, the program continues with the next statement.
Loading...
Related Quiz
- When using the REDEFINES clause, it's essential to ensure that the redefined data items have the same starting _____
- In COBOL, what is the format of the current date and time when stored in the CURRENT-DATE special register?
- How can you efficiently navigate through a file containing variable-length records in COBOL?
- The COMPUTE statement in COBOL is often used for _____ complex arithmetic calculations.
- To handle file-related exceptions, you can use the ______ statement to specify alternative actions.