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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *