You are tasked with implementing a COBOL program to track employee working hours for a large organization. How would you use arrays or tables to handle this task effectively?
- Both Array and Table
- Neither Array nor Table
- Use a table
- Use an array
For tracking employee working hours in a large organization, a table in COBOL would be more effective. A table allows for dynamic storage allocation based on the number of employees, facilitating efficient management of variable-sized data sets. Arrays might limit flexibility and could be less practical in handling a dynamic workforce.
Loading...
Related Quiz
- You are designing a COBOL program to process sales data. Which type of COBOL data item would you use to group related sales information, such as product code, quantity sold, and total sales amount?
- The "OCCURS" clause in COBOL is often used in conjunction with variable-length records to specify the maximum _____ of records in a group.
- When declaring a table in COBOL, which clause specifies the number of occurrences?
- In COBOL, what is the purpose of the 88-level condition names in the Data Division?
- In a COBOL program, if you have a numeric data item defined as USAGE COMP-3, what is the effect of applying the REDEFINES clause to it?