|
Home / Test Papers / IGNOU / CS03 File Structure and Programming in Cobol CS03 File Structure and Programming in Cobol June 2000 | Ask a question Print this page |
PGDCA / MCA (I Yr) / BCA
Term-End Examination
June, 2000
CS03 : File Structure and Programming in Cobol
Time: 2 hours
Maximum Marks: 60
1 (a) What is the purpose of OCCURS clause in COBOL? Explain with the help of examples. How can the information stored using Occurs clause be searched?
(b) How can you implement string Find and Replace operation in COBOL? Give one example.
(c) What is an equivalent construct for while loop in COBOL? Explain with an example.
(d) What is the need of having different types of file organisations? Give example of situations where you would like to use the different file organisations allowed in COBOL.
(e) What is the need usage of SYNCHRONISED clause in COBOL? Explain with the help of an example. What is a slack byte in this context?
(f) Why do you need level 77 and level 88 entries in COBOL? Explain their advantages with the help of examples.
2 Write a program in COBOL for an electricity supply company with the following requirements:
* The company maintains a master file of its customers as:
(i) Cust_no 5 numeric digits
(ii) Cust_name 25 characters
(iii) Previous_meter_reading 5 numeric digits
(iv) Cust_address 50 characters
(v) Meter_no 10 numeric digits
* Every month a transaction file is created on the basis of Mater_no as
(i) Meter_no 10 numeric digits
(ii) Meter_reading 5 numeric digits
* Assume that bills are produced only if Meter reading has been taken.
* From the above data monthly bills are to be produced for the customers and master data needs to be updated.
Take suitable file organisation for your program. Make suitable assumptions, if any, wherever needed.
3 XYZ University had two libraries-one for staff and one for students. Both these libraries maintained their books inventory using COBOL file as: Staff_library Master File:
Sorted on Book_accession_no
Book_accession_no 20 characters
Author 20 characters
Title 20 characters
Student_library Master File
Sorted on Book_accession_no
Book_accession_no 20 characters
Author 20 characters
Title 20 characters
No_of _books 4 digits
The No_of_books field was not kept in Staff_library Master as they had just one copy of the book. However, the University merged the two libraries to create one library. Write a program in COBOL to merge the data available on the two files to create a single Library Master File having format same as that of Student_library Master File. (Please note that some of the books were available in both the libraries.)
4 ABC Stores keeps its inventory using the following file:
ITEM_MASTER:
Item_code 5 numeric digits
Item_name 25 characters
Quatity_in_stock 5 numeric digits
Sorted on Item_code
it also maintains a list of suppliers in a supplier file as:
SUPPLIER_MASTER:
Supplier_Id 5 numeric digits
Supplier_name 25 characters
Supplier_address 50 characters
Sorted on Supplier_Id
Write a program in COBOL which will update Item Master file on request of issue of an item. In case the requested quantity of item is more than in the stock then the next supplier will be issued an order to supply the item. The next supplier is the next record, in the Supplier Master, to the supplier to whom lost order was placed (Thus, suppliers will be given order one by one). Please use suitable file organisations and make suitable assumptions, if any.
5 Explain the following COBOL verbs with one example each:
(a) REDEFINES clause
(b) GOTO DEPENDING verbs
(c) ON SIZE ERROR and ROUNDED options
(d) RELEASE and RETURN statements
(e) Statements used for Move and Group Move
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - Forensic Science
Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester