Multiple choice technology programming languages

close with lock statement closes an opened file and it prevents the file from further being opened by the same program.

  1. True

  2. False

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

The CLOSE WITH LOCK statement in COBOL closes the file and places a lock on it, preventing the same program from opening it again. This is a specific COBOL file handling feature for controlling file access within a program. The statement does prevent further access by the same program.