Top 10 Cobol Interview Questions and Answers

Updated 15 Jul 2025

Asked in TCS

1d ago

Q. What are the different levels used in COBOL?

Ans.

COBOL has different levels such as level 01, level 77, etc. for defining data structures and variables.

  • Level 01 is used for defining record structures.

  • Level 77 is used for defining elementary data items.

  • Level 88 is used for defining condition names.

  • L...read more

Asked in Capita

3d ago
Q. How can you highlight and use a CURSOR in a COBOL program?
Ans.

CURSOR in COBOL is used to navigate through a result set in a database program.

  • Declare a CURSOR in the Working-Storage section of the COBOL program

  • Open the CURSOR to fetch data from the database

  • Use FETCH statement to retrieve rows from the result set...read more

Asked in Accenture

1d ago

Q. What are the ways to pass data to COBOL through JCL?

Ans.

Data can be passed to COBOL through JCL using SYSIN DD statement, PARM parameter, and environment variables.

  • Use SYSIN DD statement to pass data to COBOL program

  • Pass data using PARM parameter in JCL

  • Set environment variables in JCL to pass data

Asked in LTIMindtree

2d ago

Q. Is any condition mandatory to call a program in COBOL?

Ans.

No, there is no mandatory condition to call a program in COBOL.

  • In COBOL, a program can be called without any mandatory conditions.

  • The CALL statement is used to call a program in COBOL.

  • The called program can be executed based on the logic written with...read more

Are these interview questions helpful?

Asked in Infosys

4d ago

Q. What is COBOL in mainframe?

Ans.

COBOL (Common Business-Oriented Language) is a high-level programming language used primarily for business, finance, and administrative systems on mainframe computers.

  • COBOL is one of the oldest programming languages, designed in the late 1950s.

  • It is ...read more

Asked in Infosys

2d ago

Q. What is the difference between 'goto' and 'perform' statements?

Ans.

Goto is an unconditional transfer of control while perform is a conditional transfer of control.

  • Goto is considered harmful as it can lead to spaghetti code.

  • Perform is used to execute a set of statements based on a condition.

  • Perform can be used with v...read more

Share interview questions and help millions of jobseekers 🌟
man with laptop

Asked in Amdocs

3d ago

Q. Explain the different divisions in COBOL.

Ans.

In COBOL, divisions are used to organize the program into different sections based on functionality.

  • COBOL programs are divided into four divisions: Identification, Environment, Data, and Procedure.

  • Identification Division contains program name, author...read more

Asked in Infosys

4d ago

Q. What is the difference between READ and READ INTO WS-VARIABLE?

Ans.

READ reads data from a file into a variable, while READ INTO WS-VARIABLE reads data into a specified work area.

  • READ is used to read data from a file into a variable in COBOL.

  • READ INTO WS-VARIABLE is used to read data into a specified work area in COB...read more

Asked in Carelon Global Solutions and 7 others

2d ago

Q. What is COBOL?

Ans.

COBOL is a programming language used primarily for business, finance, and administrative systems.

  • COBOL stands for Common Business-Oriented Language.

  • It is known for its readability and self-documenting nature.

  • COBOL is used in industries such as bankin...read more

Asked in Infosys

4d ago

Q. How do you pass data to COBOL?

Ans.

Data can be passed to COBOL using input/output files, parameters, or through communication with other programs.

  • Data can be passed to COBOL programs through input/output files. The program reads data from input files and writes output to output files....read more

Cobol Jobs

IBM India Pvt. Limited logo
Application Database Administrator-RDBMS 3-6 years
IBM India Pvt. Limited
3.9
Gurgaon / Gurugram
IBM India Pvt. Limited logo
Application Database Administrator-RDBMS 3-6 years
IBM India Pvt. Limited
3.9
Mumbai
IBM India Pvt. Limited logo
Technical Consultant-IoT & Edge Computing 2-7 years
IBM India Pvt. Limited
3.9
₹ 4 L/yr - ₹ 20 L/yr
(AmbitionBox estimate)
Bangalore / Bengaluru

Asked in LTIMindtree

5d ago

Q. Index and subscript in cobol

Ans.

Index and subscript are used in COBOL to access elements in arrays.

  • Index is used to access a specific element in an array based on its position

  • Subscript is used to access a specific element in an array based on its value

  • Both index and subscript can b...read more

Asked in TCS

2d ago

Q. What are the usage clause variables in COMP-1 and COMP-3 in COBOL?

Ans.

Comp 1 and Comp 3 are usage clause variables in COBOL.

  • Comp 1 is used for binary data and takes up 2 bytes of storage.

  • Comp 3 is used for packed decimal data and takes up variable storage depending on the number of digits.

  • Usage clause variables are use...read more

Asked in Wipro

1d ago

Q. What is the full form of IBM in COBOL?

Ans.

IBM Full Form in COBOL

  • IBM stands for International Business Machines

  • COBOL stands for Common Business Oriented Language

  • IBM is a company that produces hardware and software, including mainframes

  • COBOL is a programming language commonly used for business...read more

Asked in Infosys

3d ago

Q. Divisions of cobol

Ans.

COBOL has four divisions: Identification Division, Environment Division, Data Division, and Procedure Division.

  • Identification Division: Contains program name, author, and other identifying information.

  • Environment Division: Specifies the hardware and ...read more

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.7
 • 8.7k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
LTIMindtree Logo
3.7
 • 3k Interviews
IBM Logo
3.9
 • 2.5k Interviews
Nagarro Logo
4.0
 • 793 Interviews
Deutsche Bank Logo
3.9
 • 390 Interviews
N+A Logo
3.8
 • 154 Interviews
View all

Interview Questions of Cobol Related Designations

Interview Tips & Stories
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Cobol Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 Lakh+

Reviews

10L+

Interviews

4 Crore+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits