You are developing a COBOL program that needs to calculate the square root of a given number. Which COBOL intrinsic function would you use for this purpose?
- ABS
- EXP
- LOG
- SQRT
The SQRT intrinsic function in COBOL is used to calculate the square root of a given number. It is suitable for scenarios where you need to perform mathematical operations involving square roots.
Loading...
Related Quiz
- The ______ condition handler in COBOL allows you to define custom error-handling logic based on specific conditions.
- When performing database operations, the _____ statement is used to commit changes to the database.
- How does COBOL handle record locking when multiple programs access the same file in "I-O" mode?
- The "Input" file access mode is primarily used for _____ data from a file in COBOL.
- You are working on a COBOL application that deals with a hierarchical data structure, such as an organization's departments and employees. How would you use COBOL records and structures to model this hierarchy?