Paper II - COBOLAND DATAPROCESSING May 2005
PART A Answer ALL questions (20 x 2 =40 marks)
1. What is data processing? List the advantages of electronic data processing.
2. What is the significance of figurative constant?
3. What is the acronym for COBOL and CODASYL?
4. List down the various operators of COBOL.
5. What is the significance of FILLER clause?
6. Write a short note on PICTURE clause.
7. Give the syntax of File Description entry.
8. Give the syntax of DIVIDE Verb.
9. State the purpose of JUSTIFIED clause.
10. Write the syntax of ACCEPT statement with an example.
11. What is the purpose of level number 66?
12. List the various verbs of File I/O.
13. Mention the usage of sign condition with the help of its syntax.
14. Give one example to condition-name condition.
15. What is the purpose of EXIT statement?
16. What is the significance of INDEXED BY phrase?
17. Give the syntax of FD entry for variable length records.
18. What is meant by file updation?
19. What is the purpose of RETURN statement?
20. What is the purpose of ALTERNATE RECORD KEY?
PART B Answer ALL questions (5 x 12 =60 marks)
21. (a) Explain the different editing features of COBOL.
Or
(b) Briefly explain about level structure and PICTURE clause.
22. (a) State the rules governing the condition name condition and also explain
with suitable example.
Or
(b) Write a program to compute Sales Commission for sales amount. The sales commission is computed using the following conditions. Sales amount <>= 1,000 and <5,000,>= 5,000, Commission is 10% of sales amount.
23. (a) Write a note on : (i) SET(ii) SEARCH verb.
Or (b) A company has 3 categories of employees. Category 1 gets 30% of salary as HRA Category 2 gets 20% of salary as HRA Category 3 gets 15% of salary as HRA Given employee
name, category and salary. Write a program using go to with depending on to calculate and print Gross salary of each employee.
24. a)Explain any four procedure division statements of Relative file.
Or (b) Discuss the SORT verb. Give a suitable program example.
25. (a) Write a program to create a sequential file with the fields: Serial number, name, sex, department and designation. Using this file create two more files called MALE and FEMALE. Those records whose sex value is male, write it in the MALE file. Those records whose sex value is female, write it in the FEMALE file.
Or (b) Write a program to prepare electricity bill for a consumer. The bill must have the following fields.
(i) Consumer number
(ii) Initial metre reading
(iii) Final metre reading
(iv) Units Consumed
(v) Amount. The amount is calculated using the following conditions:
(1) Rate above 200 units is Rs. 2/unit
(2) Rate upto 100 units is 75 paise/unit
(3) Rate from 101-200 units is Re. l/unit Every consumer must pay a minimum of Rs.20