In a COBOL application, you need to maintain a record of sales transactions for multiple products and store them efficiently. Which type of COBOL data structure would be most suitable for this scenario, and why?
- Array
- Both Array and Table
- Neither Array nor Table
- Table
A table in COBOL would be the preferred choice for maintaining sales transactions for multiple products. A table allows for easy expansion to accommodate new products without requiring modifications to the program structure, providing a scalable and efficient solution.
Loading...
Related Quiz
- When processing multiple files in a COBOL program, you encounter an exception in one file but want to continue processing the other files without interruption. How can you achieve this?
- The _____ clause in COBOL allows you to redefine a data item to have a different data type.
- When using the ADD statement in COBOL, the result is stored in the ________.
- The _____ statement in COBOL is used for looping and repetition.
- What is the difference between the PERFORM...THRU and PERFORM...VARYING statements in COBOL?