You are working on a COBOL program to store and manipulate a list of customer IDs. Which data structure would you choose between an array and a table, and why?

  • Array
  • Both Array and Table
  • Neither Array nor Table
  • Table
In this scenario, a table in COBOL would be more suitable. A table allows dynamic allocation of storage based on the actual number of customer IDs, providing flexibility in managing varying amounts of data efficiently. Arrays have a fixed size, which may lead to inefficient memory usage.
Add your answer
Loading...

Leave a comment

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