“SELECT FILE-1 ASSIGN TO INFILE”, in this statement what is the logical and physical file name?

  1. Logical- FILE-1, Physical- INFILE

  2. Logical- INFILE, Physical- FILE-1

  3. Logical- None, Physical-ASSIGN

  4. None of them


Correct Option: A

AI Explanation

To answer this question, let's break down the given statement: "SELECT FILE-1 ASSIGN TO INFILE".

In COBOL programming, the "SELECT" statement is used to define and assign logical and physical file names. The syntax of the "SELECT" statement is as follows:

SELECT logical-file-name ASSIGN TO physical-file-name

In the given statement, the logical file name is "FILE-1" and the physical file name is "INFILE".

Therefore, the correct answer is:

A) Logical - FILE-1, Physical - INFILE

Find more quizzes: