×

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 NodeJS Interview Questions for 2024

1) What is NodeJs? NodeJs is open source JavaScript based feamework used to develop I/O intensive web application. It is collections of JavaScript library and runtime environment. It is used to...

3 minutes read.

A to Z Interview Questions

ABCDEFGHIJKLMNOPQRSTUVWXYZ Interview Questions and Answers List A AJAX Interview Questions Android Interview Questions Angular 2 Interview Questions AngularJs Interview Questions Apache Presto Interview Questions Apache Tapestry Interview Questions Arduino Interview Questions ASP.NET MVC Interview Questions Aurelia Interview Questions AWS Interview Questions B Blockchain Interview...

3 minutes read.

Top 15 PostgreSQL Interview Questions for 2024

1) What is PostgreSQL? PostgreSQL is a most advance open source database system. PostgreSQL is an object Oriented Relational Database Management System (ORDBMS). PostgreSQL source code is available free of charge...

3 minutes read.

Top 28 LISP Interview Questions for 2024

1) What is LISP? LISP is the high-level programming language after Fortran. LISP is stands for List Processing. This programming language was invented by John McCarthy in 1958 at the Massachusetts Institute of...

3 minutes read.

Top 43 React Native Interview Questions for 2024

1. What is React Native? React native is an open-source JavaScript framework designed by Facebook for native mobile applications development. It is based on a JavaScript library-React. React Native saves your development...

11 minutes read.

Top 30 Fortran Interview Questions for 2024

1) What is Fortran? Fortran is general purpose, high-level programming language which is used for numeric and scientific computing. 2) What are the features of Fortran programming language? Features of Fortran language are: ...

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

Top 15 Website Development Interview Questions for 2024

1) What is Website Development? Website Development is a process that includes following steps. web design web content development client-side or server-side scripting network security configuration etc 2) What are the skills...

3 minutes read.

Top 30 Less Interview Questions for 2024

1) What is Less? Less is a dynamic style sheet language that can be compiled in to CSS (Cascading style Sheet). It runs on client side and server side. It is...

4 minutes read.

Top 15 XHTML Interview Questions for 202

1) What is XHTML? XHTML (Extensible Hyper Text Markup Language) it is similar to the HTML but has some strict rule than HTML. It is said to be HTML defined as...

3 minutes read.

Top 15 PhantomJS Interview Question for 2024

1) What is PhantomJS? PhantomJS is a lightweight headless scripted browser built on WebKit. It is used for automation web page interaction. 2) Why it is called as headless browser? PhantomJS called as...

4 minutes read.

Top 29 Pascal Interview Questions for 2024

1) What is Pascal? Pascal is a high-level and Algol-based language that was developed by Niklaus Wirth. It is used to develop efficient and reliable programs. 2) What are the features of Pascal? Features...

4 minutes read.

Top 10 WCF Interview Questions for 2024

  1. What is WCF? Windows Communication Foundation (WCF), earlier known by the name Indigo, is a run-time platform and a set of APIs in the .NET Framework for building, configuring, and...

7 minutes read.

Top 31 Dart Programming Interview Questions for 2024

1) What is Dart? Dart is an application programming language. It is used to build web, server and mobile applications. 2) Who is the developer of Dart? Google is the developer of Dart. 3)...

6 minutes read.

Top 15 Data structure & Algorithm Interview Questions for 2024

1) What is Data Structure? Data structure is a way of storing, collecting and organizing data into the main memory. It makes data access more efficient and increase performance. Array, List, Queue...

3 minutes read.

Top 12 Docker Interview Questions for 2024

Most frequently asked Docker Interview Questions and Answers for Fresher 1. What is Docker? Docker is a new form of Software Containerization in the field of IT. It is an open-source container...

4 minutes read.

Top 15 RequireJs Interview Questions for 2024

1) What is RequireJs? RequireJs is a open source JavaScript library which is used to maintain dependencies between JavaScript files and modular programming. 2) What are the features of RequireJs? Following are the...

3 minutes read.

Top 31 Flask Interview Questions for 2024

1) What is Flask? Flask is a micro web framework written in Python. It is based on Werkzeug toolkit and Jinja 2 template engine. 2) Who is the developer of Flask? Armin Ronacher...

6 minutes read.

Top 25 PL/SQL Interview question for 2024

1) What is PL/SQL? It is defined as SQL having Procedural features of Programming Language i.e. Procedural Language extension of SQL. 2) Enlist the section of PL/SQL block. It consist of three block ...

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