×

Top 30 Cobol Interview Questions for 2024

1) What is COBOL?

COBOL is a programming language which is used for finance, business and administrative systems for companies. COBOL is stands for Common Business Oriented Language.

2) What are the features of COBOL?

Features of COBOL are:
  • Robust Language
  • Standard Language
  • Business Oriented
  • Structured Language

3) What are the different data types in COBOL?

Different data types in COBOL are:
  • Numeric
  • Alphabetic
  • Alpha-numeric

4) What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

Difference between Structured and Object Oriented COBOL programming are:
Structured COBOL Object Oriented COBOL
It is a logical way of programming It is a Natural way of programming
Here, functionalities are divided into modules Here, you identify the objects and then write functions and procedures

5) What is the difference between COMP-1 and COMP-2?

Difference between COMP-1 and COMP-2 are:
COMP-1 COMP-2
It is a Single precision floating point It is the double precision floating number
Uses four bytes Uses eight bytes

6) Which mode is used to operate the sequential file?

O-I mode (Output/Input mode) is used to operate the sequential file.

7) Give some examples of command terminators?

Examples of command terminators are:
  • End IF
  • End Evaluate

8) How many Sections are there in Data Division?

Six sections are there in data division are:
  • File Section
  • Screen Section
  • Report Section
  • Linkage Section
  • Local Storage Section
  • Working Storage Section

9) What are the access modes of START statement?

There are two access modes of START statement are:
  • DYNAMIC
  • SEQUENTIAL

10) What are the different OPEN modes available in COBOL?

Different OPEN modes available in COBOL are:
  • Input
  • Output
  • Extend
  • Input - Output

11) What is the mode in which you will OPEN a file for writing?

There are two modes :
  • OUTPUT
  • EXTEND

12) How do we get current date from system with century?

By using Intrinsic function.

13) Which division and paragraphs are mandatory for a COBOL program?

Division and paragraphs for a COBOL program are: Identification division and Program ID.

14) What are various types of search techniques in COBOL?

There are two types of search techniques are:
  • Serial search
  • Binary search

15) What are the types of table spaces used in COBOL?

Three types of table spaces used in COBOL are:
  • Simple table space
  • Segmented table space
  • Partitioned table space

16) What is the use of 66 and 88 levels in COBOL?

Level 66: It is used for Renames clause. Level 88: It is used for condition names.

17) What is "IS NUMERIC" clause?

"IS NUMERIC" clause: It is used to check the item is numeric or not. It returns true if the item contains only numbers (0 to 9). Here, the item can be positive or negative.

18) What is scope terminator?

scope terminator: It is used to mark the end of a verb. Example: If and End-If

19) Which COBOL verb is used for updating a file?

Rewrite verb is used for updating a file in COBOL.

20) Where can we use OCCURS clause?

In array declaration, we can use OCCURS clause on Elementary item and Group item.

21) Can a Search be done on a table with or without Index?

To search on a table, the table must be indexed./p>

22) What is the difference between PIC 9.99 and PIC9v99?

The difference between PIC 9.99 and PIC9v99 are:
PIC 9.99 PIC9v99
It is a four position field. It is a three position numeric field.
It contains a decimal point. Here, the decimal position is assumed.

23) What is the use of Linkage Section in COBOL?

Linkage Section: This section is used to pass data from one program/procedure to another program. It is part of a program that maps the data items in the program's storage.

24) What is level 77 in COBOL?

Level 77 is an elementary level item which cannot be subdivided.

25) What are the divisions available in COBOL program?

The divisions available in COBOL program are:
  • Data Division
  • Procedure Division
  • Environment Division
  • Identification Division

26) What is Data Division?

Data Division: It is used to define the variables in the program.

27) What is the use of File Section in Data Division?

File Section: It is used to define the record structure of the file in the data division.

28) What is Environment Division in COBOL?

Environment Division: It is used to specify input and output files to the program. Environment Division consists of two sections:
  • Configuration section
  • Input-Output section

29) What are the ways in which parameters can be passed between programs?

The ways in which parameters can be passed between programs are:The ways in which parameters can be passed between programs are:
  • By Content
  • By Reference

30) What are the types of Call available in COBOL?

The types of Call available in COBOL are:
  • Static Call: Occurs when a program is compiled with the NODYNAM compiler.
  • Dynamic Call: Occurs when a program is compiled with the DYNAM and NODLL compiler.

Related Topics

Top 15 JavaFX Interview Questions for 2024

1) What is JavaFX? JavaFX is a software platform for creating desktop applications or internet application. It uses java library. It can run various devices such as Desktop Computer, Mobile, TVs...

3 minutes read.

Top 30 TypeScript Interview Questions for 2024

1) What is TypeScript? TypeScript is an object-oriented and compiled language. TypeScript is also known as a set of tools. TypeScript is used for application-scale development. 2) What are the features of TypeScript? Features of...

4 minutes read.

Top 30 TurboGears Framework Interview Questions for 2024

1) What is TurboGears Framework? TurboGears is a Python Framework. It is used to create rapid web application. It consists of several WSGI (Web Server Gateway Interface) components. It is developed...

5 minutes read.

Top 30 DBMS Interview Questions for 2024

1) What is DBMS? DBMS (Data Base Management System) is a technology for managing data of database i.e. Create, Update, Delete, Alter. 2) What is a Database System? It is defined as collection...

4 minutes read.

Top 15 Foundation Interview Questions for 2024

1) What is Foundation? Foundation is a front-end framework that is for designing beautiful responsive websites. This framework is compatible with all types of devices and provides you with HTML, CSS...

2 minutes read.

Top 30 Aurelia Interview Questions and Answers

1) What is Aurelia? Aurelia is an open source UI framework which is used for web and mobile app development. This framework is focused on web standards and follows simple conventions. 2) What...

2 minutes read.

Top 30 Go Programming Language Interview Questions for 2024

1) What is Go Programming language? Go programming language is an open source programming language. It is developed at Google in 2007. It is designed for system programming language. 2) Who designed...

4 minutes read.

Top 25 MySQL Interview Questions for 2024

1) What is MySQL? MySql is defined as multi-user DBMS which is built and distributed my MySQLab now acquired by Oracle Co. 2) Enlist the features of MySQL. Cross-Platform Support Wide range...

3 minutes read.

Top 15 VBA Interview Questions for 2024

1) What is VBA? VBA stands for Visual Basic Application. It is an event-driven programming language. It is mainly used with Microsoft Office applications such as MS -Excel, MS-Word and MS-Access. 2)...

3 minutes read.

Top 48 C# Interview Questions for 2024

1) Write a program in C# to print "HELLO WORLD"? class Program         {          static void Main(string  args[])           {             System.Console.WriteLine(" HELLO WORLD ");             }          } 2) Write a program in C# to print "TutorialandExample" using namespace? Here, namespace is used to group related classes. Using System;    namespace  TutorialandExample      {         public class           {             public static void Main(string[]  args)             {              Console.WriteLine(" TutorialandExample ");             }          }       } 3) What are the...

8 minutes read.

Top 15 Apache Tapestry Interview Questions for 2024

1) What is Apache Tapestry? It is an open source web framework written in Java and can work under any application server. It is easily integrate with back ends like Hibernate...

2 minutes read.

Top 15 Pure CSS Interview Questions for 2024

1) What is Pure CSS? Pure is a CSS (Cascading Style Sheet) framework. It is a collection of small set of responsive CSS modules. We can integrate it to any web...

5 minutes read.

Top 16 Groovy interview Questions for 2024

1) What is Groovy? Groovy is an object oriented programming language. It is based on java platform. It can also be used as scripting language. 2) Who designed the Groovy? James Strachan designed...

2 minutes read.

Top 15 CSS Buttons Interview Questions for 2024

1) What is CSS buttons? CSS buttons is used to create awesome button. It provides huge collection of CSS library files. 2) What are the CSS libraries to create buttons? There are following...

5 minutes read.

Top 28 Prototype Interview Questions for 2024

1) What is Prototype? Prototype is a JavaScript framework which is used in dynamic web applications. It is a namespace and a module that is used to manage HTML forms. It is also...

4 minutes read.

Top 30 AJAX Interview Questions for 2024

1) What is AJAX? AJAX (Asynchronous JavaScript and XML) create better, faster and interactive web-apps. It provides data transfer between web-server and browser. 2) List some advantages of AJAX Advantages are: More Interactive: Very...

3 minutes read.

Top 15 JCL (Job Control Language) Interview Questions for 2024

1) What is JCL? JCL refers to Job Control Language. It is a command language which describes job (unit of work) for the Multiple Virtual Storage (MVS) operating system. It is...

3 minutes read.

Top 30 D Programming Language Interview Questions for 2024

1) What is D programming language? D programming language is an object oriented programming language. It is created by Walter Bright of Digital Mars. It was released in 2001. 2) Who is the...

4 minutes read.

Top 20 Java Programming Coding Interview Questions for 2024

Coding is an integral part of any programming language. It is the most important phase of an interview. Interviewee checks the capability of thinking of any particular. I think one...

13 minutes read.

Top 10 Java Swing Interview Questions for 2024

1) What is Java Swing? It is a part of JFC (Java Foundation Classess) that is used to create window-based applications. Java Swing components are platform independent and lightweight . 2) What is...

3 minutes read.