Which COBOL data type allows you to store both numeric and alphabetic characters?
- PIC 9
- PIC A
- PIC X
- PIC X(10)
The COBOL data type PIC X(10) allows you to store both numeric and alphabetic characters in the same field. It is a flexible alphanumeric field that can accommodate a mix of characters.
Loading...
Related Quiz
- In COBOL, how can you define a group item containing multiple elementary items?
- In COBOL, what is an embedded SQL statement used for in the context of database connectivity?
- In COBOL, what is the significance of the CONTINUE statement in error handling?
- What is the purpose of the REDEFINES clause in COBOL?
- The "EVALUATE" statement in COBOL is particularly useful when you have to evaluate multiple _____ in your program.