Paper II - COBOL and Data Processing
Time: Three Hours Maximum: 100 Marks
Part A - (20x2 = 40 Marks)
Answer ALL Questions
- Explain about A margin and B Margin. Give example.
- Write the purpose of IDENTIFICATION DIVISION.
- Write the machine dependent section
- Give the level numbers used for RENAMES Clause and CONDITION NAMES.
- Give examples for Numeric and Non-Numeric literals.
- Specify any two sections of DATA DIVISION.
- What is a statement?
- Write the equivalent statement in COBOL if BASIC <>
- Mention a few relational operators in COBOL.
- What is CONDITION-NAME condition?
- How do you organize if 'if block' or 'else block' contains more than one statement? write the syntax of your organisation.
- What is the purpose of ALTER statement?
- Give the syntax of SET verb.
- List down the different types of condition.
- Give the flow chart for PERFORM...........VARYING.
- What is the purpose of REDIFINE Clause?
- What is meant by file updation?
- What is the purpose of RECORD CONTAINS Clause in FD?
- Explain the terms
- Logical Record
- Unblocked File
- What is an optional file? How can it be specified? Explain
PART B (5x12 = 60 Marks)
Answer ALL questions - (a) Explain the FILE SECTION and WORKING-STORAGE SECTION in the DATA DIVISION in detail
Or (b) Write in detail the various editing features available in COBOL. - (a) Write a COBOL program for performing a Multiplication
or (b) A Cloth shop offers a festival discount for the following items:
SAREE COST > 50 DISCOUNT 50%
SHIRT COST > 150 DISCOUNT 25%
OTHER-ITEMS NO DISCOUNT
write a program to implement the above using condition name. - (a) Write a note on
(i) Qualification of Data Names
(ii) SIGN Clause
or (b) Write a COBOL Program to count the number of words in a given text - (a) Explain STRING and UNSTRING Verbs with examples
or (b) Explain any four procedure division statements of sequential file - (a) Write a program in COBOL for the central library to read data in the following format:
1-5 Book Code
6-25 Title
26-30 Price
31-40 Publication
41-50 ISBN
51-55 Category
56-60 Edition
61-65 Month of pricuring.
The program should ensure that:
(i) Book code is within the range 00001 to 19999
(ii) Price is a positive integer.
(iii) Title is not blank.
(iv) ISBN should contain only numbers.
Also calculate the money spend in a given month for the procurement of books
or
(b) Write a program to calculate income-tax of each employee from their annual with the following conditions:
Annual Income Income Tax
>0 and <= 100000 NIL
>100000 and <= 150000 20% of annual income
above 1500000 30% of annual income