Ask COBOL Expert


Home >> COBOL

Cobol questions

1. you code the file status clause of the FD statement for a file when you want to
A. handle I/O errors for that file with in the program
B. Check whether a file is open or not
C. Cunt the number of records that have been read or written in the file

2. If the file status field for an output file has a value of zero, that means
A. The file does contain any records
B. The file is not open
C. A serious I/O error has occurred

3. When you open a sequential file in extend mode
A. You can write but not read records in the file
B. You can both read and write records in the file
C. A new file is created

4. In a sequential maintenance program, if an addition transaction matches a master file record,
A. A new master record replaces the old one
B. A new master record is written to the new master file right after the matching master record
C. An error is indicated

5. In a sequential maintenance program, if a deletion transaction matches a master file record,
A. The matching master record is written to the new master file
B. The matching master record is not written to the new master file
C. An error is indicated

6. For machining record logic to work in a sequential update or maintenance program, the file that are being compared
A. Must have the same record descriptions
B. Must have the same blocking factor
C. Must be in sequence by the same control filed

7. In a sequential maintenance program, if the end of the master file reaches before the end of the transaction file.
A. The program ends
B. The remaining transaction records that are not adds or written to the error file
C. An I/O error is indicated

8. Which of the following series of transactions involving the same item number are permitted using the sequential maintenance program?
A. Add, delete, change, change, change
B. Delete, add, change, change
C. Add, add, delete, change

9. When the sequential maintenance program starts up, the initial settings of the NEED-TRANSACTION, NEED- MASTER, WRITE-MASTER are:
A. Y, Y, N
B. N, N, N
C. Y, Y, Y

COBOL, Programming

  • Category:- COBOL
  • Reference No.:- M91738603

Have any Question?


Related Questions in COBOL

Write a program that will provide a list of their employees

Write a program that will provide a list of their employees with the following information: Field Size Type Additional Information Employee Number 5 Alphanumeric Employee Name 20 Alphanumeric Position Title (PT) 10 Alpha ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As