Cobol Flashcards

1
Q

COBOL Stands for

A

Common Business-Oriented Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What level of programming language is Cobol

A

high-level programming language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

It is used to develop business-oriented applications

A

COBOL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Features of COBOL

A
  1. Standard Language
  2. English Like Language
  3. Scalable and reliable
  4. Platform Independent
  5. Robust Language
  6. Structured Programming Capacity
  7. Excellent File and DB handling
  8. Object Oriented Programming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

She was a computer pioneer and naval officer.

A

Grace Brewster Murray Hopper

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Grace Brewster Murray Hopper is best known for ____________

A

trailblazing contributions to computer programming, and software development.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CODASYL stands for

A

Conference of Data Systems Languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

It aimed to develop a common business language that could be used across industries and sectors.

A

Conference of Data Systems Languages (CODASYL)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In what year does Hopper took part in the Conference of Data Systems Languages (CODASYL)?

A

1959

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

MILESTONES IN ORDER

A
  1. 1958
  2. 1959
  3. 1960
  4. 1961
  5. 1965-1985
  6. 1986-2018
  7. 2022
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

MILESTONE: High-level business data processing language.

A

1958

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

MILESTONE: The final draft of the first specification was completed

A

1959

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

MILESTONE: Release with some minor modifications in April 1960

A

1960

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

MILESTONE: COBOL - 61 was published with some more revisions

A

1961

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

MILESTONES: ANSI approves COBOL as the standard language for

A

1965-1985

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

MILESTONE: Objective-oriented programming, web support, etc.

A

1986-2018

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

MILESTONE: IBM Enterprise COBOL for z/IOS 6.4 that supports the latest z16

A

2022

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

IDE FOR COBOL

A

COBOL
VS Code
JDoodle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

COBOL is the ___________ of business computing

A

BACKBONE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

BASIC SYNTAX

A
  1. Character Set
  2. Character Strings
  3. Literal
  4. COBOL Word
  5. User-Defined
  6. Reserved Words
  7. Special Characters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

are lowest in the hierarchy and they cannot be divided further

A

character set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A-Z Alphabets

A

Upper Case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

a-z alphabets

A

lower case

24
Q

20 characters

A
  1. A-Z Alphabets (Upper Case)
  2. a-z Alphabets (Lower Case)
  3. 0-9
  4. Space
    • Plus Sign
    • Minus Sign
    • Asterisk
  5. / Forward Slash
  6. $ Currency Sign
  7. , Comma
  8. ; Semicolon
  9. . Decimal Point
  10. ” Quotation Marks
  11. ( Left Parenthesis
  12. ) Right Parenthesis
  13. > Greater than
  14. < Less than
  15. : Colon
  16. ’ Apostrophe
  17. = Equal
25
Q

are formed by combining individual characters.

A

character strings

26
Q

is a character-string that can contain any combination of characters from the character set of the computer. It has no effect on the execution of the program.

A

comment

27
Q

How to comment

A
  • or /
28
Q

is a constant that is directly hard-coded in a program.

A

literal

29
Q

two Types of literals

A
  1. Non-Numeric Literal
  2. Numeric Literal
30
Q

are enclosed in quotes or apostrophes. Length can be up to 160 characters.

A

Non-Numeric Literals

31
Q

is a combination of digits from 0 to 9, +, -, or decimal point. Length can be up to 18 characters.

A

Numeric Literal

32
Q

is a character string that can be a reserved word or a user-defined word. Length can be up to 30 characters.

A

COBOL Word

33
Q

are used for naming files, data, records, paragraph names, and sections.

A

User-defined

34
Q

are predefined words in COBOL.

A

Reserved words

35
Q

Example of Keywords in COBOL

A

ADD, ACCEPT, MOVE

36
Q

2 Operators

A

Arithmetic Operators and Relational Operators

37
Q

ZERO, SPACES, HIGH-VALUE, LOW-VALUE

A

Figurative Constants

38
Q

4 Data Types

A
  1. Level Number
  2. Data Name
  3. Picture Clause
  4. Value Clause
39
Q

Level Number and Description: 01

A

Record description entry

40
Q

Level Number and Description: 02 to 49

A

Group and Elementary items

41
Q

Level Number and Description: 66

A

Rename Clause items

42
Q

Level Number and Description: 77

A

Items which cannot be subdivided

43
Q

Level Number and Description: 88

A

Condition name entry

44
Q

Enumerate Level Numbers:

A

01
02 to 49
66
77
88

45
Q

Enumerate Picture Clause Symbols:

A

9
A
X
V
S
P

46
Q

PICTURE CLAUSE: 9

A

Numeric

47
Q

PICTURE CLAUSE: A

A

Aphabetic

48
Q

PICTURE CLAUSE: X

A

Alphanumeric

49
Q

PICTURE CLAUSE: V

A

Implicit Decimal

50
Q

PICTURE CLAUSE: S

A

Sign

51
Q

PICTURE CLAUSE: P

A

Assumed Decimal

52
Q

Cobol Program Structure 4 Divisions:

A

Identification Division
Environment Division
Data Division
Procedure Division

53
Q

Program Name

A

IDENTIFICATION DIVISION

54
Q
  • Describes the hardware the program is running on
  • Briefly describes the data files
A

ENVIRONMENT DIVISION

55
Q
  • Defines all data
  • Files and working storage
A

DATA DIVISION

56
Q

Logic of the program

A

PROCEDURE DIVISION