Cobol MCQ

Cobol MCQ

1. Which is the correct ASCII collating sequence?

Answer

Correct Answer: Spaces, special characters, 0-9, A-Z, a-z

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Do-While loop

Note: This Question is unanswered, help us to find answer for this one

3. 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?

Answer

Correct Answer: This is a breakdown of the 05 field.

Note: This Question is unanswered, help us to find answer for this one

4. 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?

Answer

Correct Answer: 88

Note: This Question is unanswered, help us to find answer for this one

5. Cobol is self-documenting.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

6. Sentences and statements must start on a new line.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

8. Not negative means

Answer

Correct Answer: Greater than or equal to 0

Note: This Question is unanswered, help us to find answer for this one

9. Which of the following errors are possible within a COBOL if statement?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

10. How many comparisons can a single COBOL statement make?

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one