You are designing a COBOL program to manage a customer database. What file organization would you choose for the master file to allow efficient random access to customer records?
- Indexed
- Line Sequential
- Relative
- Sequential
For efficient random access, an Indexed file organization is suitable for a master file in COBOL. It uses an index to allow direct access to records based on a key, optimizing retrieval times.
Loading...
Related Quiz
- In COBOL, _____ recursion refers to a situation where a subprogram calls itself directly or indirectly.
- How can you handle decimal point alignment when performing arithmetic operations on packed decimal fields?
- Your COBOL application needs to create a new file and write data to it. Which file access mode should be used for this purpose?
- What is the benefit of using an index in COBOL arrays and tables?
- Which statement in the COBOL Procedure Division is used to perform calculations and data manipulation?