|
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 (S): File Structure and Programming in Cobol
Time: 2 hours
Maximum Marks: 60
1. (a) What is the purpose of the PERFORM statement in COBOL ? Write one example of a PERFORM statement. (4)
(b) Explain the use of the following with the help of one example of each : (6)
(i) ACCEPT
(ii) WRITE
(iii) CLOSE
(c) lndicate the value of the rrceiving data items for each of the following: (5)
| Source Item | Receiving Item | |||
| PICTURE | VALUE | PICTURE | VALUE | |
| (i) | S99999 | 19738 | 9999DB | |
| (ii) | 99V99 | 10101 | Z,ZZZ.9 | |
| (iii) | 9999V99 | 25700 | $***,***.99 | |
| (iv) | 99V99 | 00010 | $Z,ZZZ.99 | |
| (v) | 999V99 | 13789 | 99999 | |
(d) A table contains the details of 500 books of 6 subjects. Write the PROCEDURE DIVISI0N statements necassary for counting the number of those books in each subject whose price is above Rs. 1,000. (5)
(e) List five statements/clauses used in sequential file organization in COBOL. (5)
(f) What is the use of FILLER statement in COBOL ?
Explain it with three suitable examples. (5)
2. Write a program in COBOL to compute the 'fine' due to delay in deposit of electricity bills. Calulate it from the following record format: (10)
0 - 5 Consumer ldentification Code
6 - 10 Month
11 - 15 Year
16 - 23 Due Date of Deposit
24 - 32 Actual Date of Deposit
33 - 40 Penalty
The rate of fine is Rs. 2 per day.
3. The human resource (HR) department of a business process organization (BPO) maintains a list of the resumes of applicants. Write a program to sort the resumes in descending order of qualification. Assume the categories of qualification are doctorate, post graduate, graduate, diploma and others. (10)
Note : Make suitable assumptions, if needed, and mention them.
4. A non-government organization (NGO) receives financial aid from the State Government, to help the Tsunami victims and to maintain the records with the following files
| Master File | Transaction File |
| Scheme Code | Receipt ldentification Code |
| Name | Agency Code |
| Fund | Name |
| Area | Scheme Id |
| Incharge Code | Amount |
Write a program in COBOL to update the master file for the value ot the fund. Also display the funds received for "Tsunami". (10)
Note : Make suitable assumprions, if needed, and mention them.
5. Explain the use of the following verbs/statements with the help of one example of each : (10)
(a) DIVIDE
(b) IF
(c) SORT
(d) GO TO
(e) INSPECT
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