COBOL Flashcards
(98 cards)
COBOL stands for:
Common Business-Oriented Language
When was COBOL deveoped:
1959
Who created COBOL:
Grace Hopper
Known as the first hacker in history
Grace Hopper
Created the first compiler in history
Grace Hopper
The main objective of COBOL was to create a ______________ that could efficiently process business data, such as payroll, inventory, and financial transactions.
machine-independent language
COBOL’s first official version was released in
1960
COBOL is mainly used for:
Business applications
Influenced the creation of COBOL
FLOW-MATIC
The first standardized version, introduced in 1968
COBOL-68
This version added structured programming elements
COBOL-74
This version introduced scope terminators and other enhancements for maintainability.
COBOL-85
This version integrated object-oriented programming (OOP) features.
COBOL 2002
COBOL is primarily used in:
- Banking and Finance
- Government Systems
- Healthcare and Insurance
- Retail and Manufacturing
COBOL is classified as a _______________
high-level, business-oriented programming language
COBOL is a _________, meaning it requires a compiler to convert source code into
machine code.
compiled language
True or False. COBOL supports both implicit and explicit variable declarations
False
Variables and constants are explicitly defined using:
DATA DIVISION
Assign value 12345 to Employee-ID
01 Employee-ID PIC 9(5) VALUE 12345.
Assign John Doe to Employee-Name
01 Employee-Name PIC X(20) VALUE ‘John Doe’.
What PIC clause is used in COBOL to store integer (whole number) values?
PIC 9 – Numeric
Which PIC clause is used to store text or a combination of letters, numbers, and symbols in COBOL?
PIC X – Alphanumeric.
What data type does PIC A represent in COBOL?
Alphabetic – It stores only letters (A–Z, a–z).
Which PIC clause is used for decimal numbers or floating-point values in COBOL?
PIC 9V9 – The V represents an implied decimal point.