| Not interested in regular college? Try Distance Education |
|
Home / Test Papers / IGNOU / CS03 File Structure and Programming in Cobol CS03 File Structure and Programming in Cobol December 2005 | Ask a question Print this page |
PGDCA / MCA (I Yr) / BCA
Term-End Examination
December, 2005
CS03 : File Structure and Programming in Cobol
Time: 2 hours
Maximum Marks: 60
1. (a) What is the purpose of SORT statement in COBOL ? Write three formats in which SORT statement can be used in COBOL, with one example of each format. (4)
(b) Write the use of the following COBOL verbs, including one example of each: (6)
(i) MERGE
(ii) CLOSE
(iii) EXIT
(c) A Sports department in a University stores the information about sports personnel and sports items. Create the data division for processing this information. (5)
(d) Compare the usages of COMP, COMP_1, COMP_2, COMP_3 and illustrate this in a Suitable example. (5)
(e) The data name A , B, C, D has the following data descriptions :
77 A PIC 999 v 9(2) 123.55 77 B PIC 9(4) 23 77 C PIC 9(2) v 99 3.8 77 D PIC 9(2) v 9(2) 8.64What will the content of A, B, C, D be after execution of the following statements? (4)
(f) How are WRITE and REWRITE statements used in an indexed sequential file organization ? Write themajor formats of these statements used in COBOL. (6)
2. A banking organization has recruited few persons on a fixed scale and others on commission basis. Write a program to store lnformation about both types of employees and also find the details of a person who has got maximum commission last month. (10)
3. A transport company maintains information about trucks, buses and taxies in the following files :
master file : vehicle code 6 Characters registration no. 8 Characters date of purchase 8 Characters price 8 digits supplier code 8 Characters total Maintenance 8 digits transaction file : Customer code 6 characters vehicle code 6 characters date of issue 8 characters date of return 8 characters amount 8 digits maintenance 8 digitsWrite a program in COBOL to update total maintenance in the master file using maintenance from the transaction file. Also show the details of customers who have hired a particular vehicle during the last six months. (10)
4. Write a program in COBOL to keep the record of Journals in the following format : (10)
0 - 5 Journal Code
6 - 20 Title
21 - 30 Publishing Agency
31 - 40 ISBN
41 - 45 Year of publishing
46 - 50 Volume
51 - 55 Price
The Program should ensure that :
(i) Journal code is within range 10000 io 19999.
(ii) Publishing Agency should contain only alphabets and blanks.
(iii) Issue volume and price contain only number
5. Explain the use of the following COBOL verbs/statements, with the help of one example of each : (10)
(a) RELEASE
(b) PERFORM
(c) INSPECT
(d) OCCURS
(e) UNSTRING
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