Cobol MCQs

Cobol MCQs

Our experts have gathered these Cobol MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Cobol by answering these # multiple-choice questions.
Get started now by scrolling down!

1: How many comparisons can a single COBOL statement make?

A.   There is no limit

B.   1

C.   COBOL if statements are not used to compare variable values

D.   2

2: Which of the following errors are possible within a COBOL if statement?

A.   All of these

B.   Infinite Loop

C.   Runtime error

D.   Logical Error

3: Not negative means

A.   Greater than or equal to 0

B.   Equal to 0

C.   Greater than or equal to 1

D.   Less than or equal to 0

4: If a field is defined as Pic s9(6)v99 comp-3, it uses 5 bytes of storage.

A.   False

B.   True

5: Sentences and statements must start on a new line.

A.   True

B.   False

6: Cobol is self-documenting.

A.   False

B.   True

7: Condition names are names associated with a field that take on a true/false status depending on whether their value is equal to the field value. They are indicated by a level number of what?

A.   66

B.   77

C.   88

D.   05

8: When defining a file layout it is placed in the file section of the data division. Each record begins with an "01", a space, and the record name. Fields within a record traditionally began with 05?

A.   This is a breakdown of the 05 field.

B.   All of these answers.

C.   This is an alternate name for the 05 name.

D.   This is another format for the field.

9: The COBOL perform loop is the equivalent of which of the following structures found in other languages, such as Java or C++

A.   Do-While loop

B.   None of these

C.   Method

D.   FOR loop

10: Which is the correct ASCII collating sequence?

A.   Spaces, a-z, A-Z, 0-9, special characters

B.   Spaces, special characters, 0-9, A-Z, a-z

C.   A-z, A-Z, 0-9, spaces, special characters

D.   0-9, special characters, spaces, a-z, A-Z