Interview Questions

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 Blockchain Interview Questions Bootstrap Interview Questions C Interview Questions C Programming Coding Interview Questions C# Interview Questions C++ Interview Questions Cakephp Interview Questions Cassandra Interview Questions CherryPy Interview Questions Clojure Interview Questions Cobol Interview Questions CodeIgniter interview Questions CoffeeScript Interview Questions Cordova Interview Questions CouchDB interview questions CSS Buttons Interview Questions CSS Interview Questions D Programming Language Interview Questions Dart Programming Language Interview Questions Data structure & Algorithm Interview Questions DB2 Interview Questions DBMS Interview Questions Django Interview Questions Docker Interview Questions DOJO Interview Questions Drupal Interview Questions Electron Interview Questions Elixir Interview Questions Erlang Interview Questions ES6 Interview Questions and Answers Euphoria Interview Questions ExpressJS Interview Questions Ext Js Interview Questions F# Interview Questions Firebase Interview Questions Flask Interview Questions Flex Interview Questions Fortran Interview Questions Foundation Interview Questions Framework7 Interview Questions FuelPHP Framework Interview Questions Go Programming Language Interview Questions Google Maps Interview Questions Groovy interview Questions GWT Interview Questions Hadoop Interview Questions Haskell Interview Questions Highcharts Interview Questions HTML Interview Questions HTTP Interview Questions Ionic Interview Questions iOS Interview Questions IoT Interview Questions Java BeanUtils Interview Questions Java Collections Interview Questions Java Interview Questions Java JDBC Interview Questions Java Multithreading Interview Questions Java OOPS Interview Questions Java Programming Coding Interview Questions Java Swing Interview Questions JavaFX Interview Questions JavaScript Interview Questions JCL (Job Control Language) Interview Questions Joomla Interview Questions jQuery Interview Questions js Interview Questions JSF Interview Questions JSP Interview Questions KnockoutJS Interview Questions Koa Interview Questions Laravel Interview Questions Less Interview Questions LISP Interview Questions Magento Interview Questions MariaDB Interview Questions Material Design Lite Interview Questions Materialize CSS Framework Interview Questions MathML Interview Questions MATLAB Interview Questions Meteor Interview Questions MongoDB interview Questions Moo Tools Interview Questions MySQL Interview Questions NodeJS Interview Questions OpenStack Interview Questions Oracle DBA Interview Questions Pascal Interview Questions Perl interview questions Phalcon Framework Interview Questions PhantomJS Interview Questions PhoneGap Interview Questions Php Interview Questions PL/SQL Interview Questions PostgreSQL Interview Questions PouchDB Interview Questions Prototype Interview Questions Pure CSS Interview Questions Python Interview Questions R programming Language Interview Questions React Native Interview Questions ReactJS Interview Questions RequireJs Interview Questions RESTful Web Services Interview Questions RPA Interview Questions Ruby Interview Questions Ruby on Rails Interview Questions SAS Interview Questions SASS Interview Questions Scala Interview Questions Sencha Touch Interview Questions SEO Interview Questions Servlet Interview Questions SQL Interview Questions SQL Server Interview Questions SQLite Interview Questions Struts Interview Questions SVG Interview Questions Swift Interview Questions Symfony PHP Framework Interview Questions T-SQL(Transact-SQL) Interview Questions TurboGears Framework Interview Questions TypeScript Interview Questions UiPath Interview Questions VB Script Interview Questions VBA Interview Questions WCF Interview Questions Web icon Interview Questions Web Service Interview Questions Web2py Framework Interview Questions WebGL Interview Questions Website Development Interview Questions WordPress Interview Questions Xamarin Interview Questions XHTML Interview Questions XML Interview Questions XSL Interview Questions Yii PHP Framework Interview Questions Zend Framework Interview Questions

Top 30 Cobol Interview Questions for 2022

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.



ADVERTISEMENT
ADVERTISEMENT