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.
Loading...
Related Quiz
- What is the primary purpose of implementing exception handling in a COBOL program?
- A group item in COBOL can contain multiple elementary items and is defined using the _________ keyword.
- The CONTINUE statement is primarily used for __________ error handling in COBOL programs.
- Which COBOL verb is commonly used to handle file errors and exceptions?
- When formatting dates for user display, the _____ format ensures readability across different locales.