Wednesday, May 28, 2008

COBOL AND DATA PROCESSING

2028/DC2 May 2008
Paper II - COBOL and Data Processing
Time: Three Hours Maximum: 100 Marks

Part A - (20x2 = 40 Marks)
Answer ALL Questions

  1. Explain about A margin and B Margin. Give example.
  2. Write the purpose of IDENTIFICATION DIVISION.
  3. Write the machine dependent section
  4. Give the level numbers used for RENAMES Clause and CONDITION NAMES.
  5. Give examples for Numeric and Non-Numeric literals.
  6. Specify any two sections of DATA DIVISION.
  7. What is a statement?
  8. Write the equivalent statement in COBOL if BASIC <>
  9. Mention a few relational operators in COBOL.
  10. What is CONDITION-NAME condition?
  11. How do you organize if 'if block' or 'else block' contains more than one statement? write the syntax of your organisation.
  12. What is the purpose of ALTER statement?
  13. Give the syntax of SET verb.
  14. List down the different types of condition.
  15. Give the flow chart for PERFORM...........VARYING.
  16. What is the purpose of REDIFINE Clause?
  17. What is meant by file updation?
  18. What is the purpose of RECORD CONTAINS Clause in FD?
  19. Explain the terms
    1. Logical Record
    2. Unblocked File
  20. What is an optional file? How can it be specified? Explain

    PART B (5x12 = 60 Marks)
    Answer ALL questions
  21. (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.
  22. (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.
  23. (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
  24. (a) Explain STRING and UNSTRING Verbs with examples
    or (b) Explain any four procedure division statements of sequential file
  25. (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

No comments: