Showing posts with label COBOL and Dataprocessing. Show all posts
Showing posts with label COBOL and Dataprocessing. Show all posts

Monday, June 2, 2008

COBOL AND DATA PROCESSING

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

Part A - (20 x 2 = 40 marks)
Answer ALL questions

  1. Write down the general structure of COBOL program.
  2. What is literals? Give their types.
  3. What are the various divisions under DATA division?
  4. What is FIGURATIVE CONSTANTS?
  5. List the various PICTURE formats.
  6. What are the minimum entries required to declare the sequential file?
  7. Give the syntax for I/O statements in COBOL.
  8. What are the advantages of Editing picture characters?
  9. What is SYNCHRONISED clause?
  10. Write the corresponding MOVE statements for the following : p = n = r = 0, q = 5.5. s = q. y = p.
  11. With an example give the use of ROUNDED option.
  12. Define qualifications of Data names
  13. Write down the general format of compound condition
  14. List out the types of PERFORM statements
  15. What is class test? Give examples.
  16. State the purpose of GOTO statement.
  17. Define File. What are the types of files available?
  18. Write down the syntax of file I/O statements.
  19. List out the four stages of a payroll system.
  20. What is the significant of FD level?

    PART B - (5x12 = 60 marks)
    Answer ALL the questions

  21. (a) (i) Explain with examples the reserved words, user defined words and key words
    (ii) Write down the screen section entries to clear the screen.
    Or (b) Define the editing characters. List and explain any eight editing characters with examples.
  22. (a) Explain the various forms of Arithmetic verbs with all options.
    or (b) Write a COBOL program to print a multiplication table from 5 to 10 with 20 entries in each.
  23. (a) Write a COBOL program to read the input Name, Reg, No, m1, m2, m3 from existing data file "MARK.DAT" and print the Reg.No and Result.
    Result calculation : if m1, m2, m3 > 45 then "PASS" else "FAIL" or
    (b) Write a note on:
    (i) USAGE
    (ii) SYNCHRONIZED clause
  24. (a) Write a COBOL program to read all the records from an input file which has fields NAME, SEX, AGE and QUALN and write into another file, only that records satisfy the following condition:
    (i) Male record
    (ii) age less than 28 yrs
    (iii) B.Sc. graduate
    or
    (b) What are the various factors that influence in choosing particular file organization? Tabulate the disadvantages of sequential file and indexed sequential file.
  25. (a) Explain any four procedure division statements of indexed sequential file
    or (b) Describe with system charts and program flow charts the design of an pay roll processing for an university.

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

Sunday, April 13, 2008

COBOL and Data Processing

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

Saturday, December 29, 2007

COBOL and Data Processing

Paper II - COBOL and Data Processing
DC 2 October 2007
Part A - (20x2 = 40 Marks)

  1. What is the character set used in COBOL
  2. Define: Nonnumeric Literal
  3. What are figurative constants
  4. What is the use of SOURCE-COMPUTER paragraph
  5. Write a note on: VALUE clause
  6. Write the use of MOVE verb
  7. Write the general format of the READ statement
  8. What is the use of 66 Level number?
  9. Define: Group Data Item.
  10. Write the use of '9' PICTURE clause character
  11. Write the note on: ROUNDED option
  12. What is the purpose of SIGN clause
  13. What is the Relation condition? give an example.
  14. Write the Relation operators in COBOL
  15. Write a note on: GOTO statement
  16. What are the subscripted variables?
  17. Define: Record
  18. What are the sequential files?
  19. Write the general syntax of MERGE statement
  20. Write a note on: FILE-CONTROL paragraph
PART B (5 x 12 = 60 Marks)

Answer all questions
  1. (a) Explain the uses of all divisions of COBOL program with examples
    or (b) Describe the rules for formating valid COBOL words with suitable illustrations
  2. (a) Explain the uses of different PICTURE clause Editing characters with examples
    or (b) Write a COBOL program to find the simple and compound interest
  3. (a) Describe the general forms of MULTIPLY and DIVIDE statements with examples
    or (b) Explain the following statements with examples
    (i) COMPUTE verb
    (ii) DISPLAY verb
  4. (a) Describe the different types of conditions with examples
    or (b) write a COBOL program to do matrix addition
  5. (a) Desribe the file control entries and I/O statements for sequential find with examples.
    or (b) write a COBOL program to do Inventory processing