Tag: programming languages

Questions Related to programming languages

TMF provides the integrity of the database against failure of the any of the following:

  1. Disk drive and Disk controller

  2. Disk process and CPU

  3. An application process and Entire system

  4. Both a, b and c


Correct Option: D

What are the features of TMF?

  1. Consistency

  2. Fault Tolerant Records

  3. Roll Back

  4. Locking

  5. All of the above


Correct Option: E

SCUP operates on the SCREEN COBOL object library by recompiling the source program

  1. True

  2. False


Correct Option: B

Can a SEARCH be applied to a table which does not have an INDEX defined?

  1. True

  2. False


Correct Option: B

When a pathway system is shut down, all configuration information up to that time is retained in the pathway control file

  1. True

  2. False


Correct Option: B

PROGRAM-ID is optional paragraph in any program

  1. True

  2. False


Correct Option: B

DAY-OF-INTEGER is a Numeric Intrinsic Function

  1. True

  2. False


Correct Option: B

In TANDEM COBOL85, it is not necessary to explicitly close files through the CLOSE statement before executing a STOP RUN

  1. True

  2. False


Correct Option: B

Which mode of opening is required when REWRITE is used?

  1. INPUT

  2. OUTPUT

  3. I-O

  4. EXTEND

  5. All of the above

  6. None of the above


Correct Option: C

AI Explanation

To understand which mode of opening is required when the REWRITE statement is used, let's go through each option:

Option A) INPUT - This option is incorrect because the INPUT mode is used for reading data from a file, not for rewriting existing data.

Option B) OUTPUT - This option is incorrect because the OUTPUT mode is used for writing data to a file, not for rewriting existing data.

Option C) I-O - This option is correct because the I-O mode (Input-Output) is used when you want to both read and rewrite existing data in a file. The REWRITE statement is used specifically to rewrite existing records within a file.

Option D) EXTEND - This option is incorrect because the EXTEND mode is used to add new records to the end of a file, not for rewriting existing data.

Option E) All of the above - This option is incorrect because not all of the above options are required when using the REWRITE statement. Only the I-O mode is required.

Option F) None of the above - This option is incorrect because the correct answer is option C, I-O.

Therefore, the correct answer is option C, I-O. This option is correct because the I-O mode is required when using the REWRITE statement to rewrite existing records in a file.