MCA IInd semester:S03 (S): File Structure and Programming in Cobol

Upto December 2004 OLD SYLLABUS
CS03 File Structure & Programming in COBOL

Time: 2 hours
Maximum Marks: 60
Note : Question number 1 is compulsory. Attempt any three questions from the rest.

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

del.icio.us Reddit Digg Technorati Google StumbleUpon Yahoo Newsvine IndianPad Fark

Leave a Reply

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>