Multiple choice technology mainframe

What mode the file should be opened,if it should be Rewritten?

  1. (A) Input

  2. (B) I-O

  3. (C) Output

  4. (D) A or B or C

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

To use the REWRITE statement in COBOL to update an existing record in a file, the file must be opened in I-O (Input-Output) mode. Opening in INPUT mode only allows reading, while OUTPUT mode only allows writing new records, making I-O the only valid mode.