Interview Helper
Translate Page To German Tranlate Page To Spanish Translate Page To French Translate Page To Italian Translate Page To Japanese Translate Page To Korean Translate Page To Portuguese Translate Page To Chinese
  Number Times Read : 74      
  Go To Article# :  1 2 3 4 5 6  
Categories

Campus Interviews (99)
Career Helper (6)
Certification Dumps (9)
Code Samples (8)
Competitive Exams (49)
Interview Questions (349)
Walkin Interviews (20)
 
Stats
Total Articles: 566
Total Authors: 120
Total Downloads: 92876


Newest Member
Gagan Deep Sharma
 


   

Cobol Interview Questions 1

By : Nisha Sahni    29 or more times read
Submitted 2008-08-29 11:42:22 [Valid RSS feed]




1.Name the divisions in a COBOL program.


Identification Division, Environment Division, Data Division, Procedure Division.


2.What are the different data types available in COBOL?


Alpha-numeric (X), alphabetic (A) and numeric (9).


3.What does the INITIALIZE verb do? –


Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.


Numeric, Numeric edited items set to ZERO.


FILLER , OCCURS DEPENDING ON items left untouched.


4.What is 77 level used for ?


Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.


5.What is 88 level used for ?


For condition names.


6.What is level 66 used for ?


For RENAMES clause.


7.What does the IS NUMERIC clause establish ?


IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and usigned numeric & packed decimal items. IS NUMERIC returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed item, then it may contain 0-9, + and - .



8.How do you Define a table/array in COBOL?


01 ARRAYS.


05 ARRAY1 PIC X(9) OCCURS 10 TIMES.


05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX.


9.Can the OCCURS clause be at the 01 level?


No.


10.What is the difference between index and subscript?


Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array. An index can only be modified using PERFORM, SEARCH & SET.


Need to have index for a table in order to use SEARCH, SEARCH ALL.



Author Resource:-
Article From Interview Helper
New Members
select
Sign up
select
learn more
Affiliate Sign in
Affiliate Sign In
 
Nav Menu
Home
Login
Submit Articles
Submission Guidelines
Top Articles
Link Directory
About Us
Contact Us
Privacy Policy
RSS Feeds

Actions
Print This Article
Add To Favorites

 
Sponsors

 

 

All Rights Reserved Interview Helper