COBOL MCQ Questions And Answers - Mainframe Development
COBOL MCQs : This section focuses on "basics" of COBOL. These Multiple Choice Questions (MCQ) should be practiced to improve the COBOL skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. COBOL is abbreviated as ?
A. Companies Business Oriented Language
B. Common Business Open Language
C. Common Business Oriented Language
D. Common Business Output Language
View Answer
Ans : C
Explanation: COBOL is abbreviated as Common Business Oriented Language and it is one of the oldest programming languages. It primarily used for business, finance and administrative systems for companies.
2. How many different data types in COBOL?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : B
Explanation: There are three data types in Cobol: Alpha-numeric (X), Alphabetic (A) and Numeric (9)
3. An _________ can only be modified using PERFORM, SEARCH & SET.
A. subscript
B. section
C. paragraph
D. index
View Answer
Ans : D
Explanation: An index can only be modified using PERFORM, SEARCH & SET.
4. CONTINUE is like a null statement and it continues execution.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, CONTINUE is like a null statement and it continues execution.
5. Open modes can be used for?
A. Input
B. Output
C. Extend
D. All of the above
View Answer
Ans : D
Explanation: Open modes can be used for: Input, Output, Input – Output and Extend
6. The _____________ is used to pass data from one program to another program or to pass data from a procedure to a program.
A. local-storage
B. linkage section
C. Both A and B
D. None of the above
View Answer
Ans : B
Explanation: The linkage section is used to pass data from one program to another program or to pass data from a procedure to a program. It is part of a called program that maps to data items in the calling program's working storage.
7. Access modes are ___________________ for the start statement.
A. SEQUENTIAL
B. DYNAMIC
C. SEQUENTIAL or DYNAMIC
D. None of the above
View Answer
Ans : C
Explanation: Access modes are SEQUENTIAL or DYNAMIC for the start statement.
8. _______________ are mandatory for a COBOL program.
A. COBOL ID
B. Identification division
C. Program ID
D. Identification division and Program ID
View Answer
Ans : D
Explanation: Identification division and Program ID are mandatory for a COBOL program.
9. How many total divisions of a COBOL program?
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : D
Explanation: There are four divisions in a cobol program: IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION and PROCEDURE DIVISION
10. Static linking also called subroutine links
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, static linking, called subroutine links.
Discussion