Madurai Kamaraj University - DDE - Bachelor of Computer Applications (BCA) Test Papers
A 16 5194 F
B.C.A. DEGREE EXAMINATION, OCTOBER 2001.
First Year
COBOL PROGRAMMING
Time: Three hours
Maximum: 100 marks
PART A – (6 x 5 = 30 marks)
Answer any SIX questions.
Each question carries FIVE marks.
- Define Identifier. What are the rules for forming identifiers?
- List any five figurative constants.
- Write the syntax for subtract statement. Give an example.
- Write the syntax for Divide statement? Give an example.
- What are the uses of level numbers? Give examples.
- List atleast five edited picture clause.
- Distinguish between Go To and Go To depending on verbs in COBOL.
- Give an example for declaring two dimensional array.
- Write the syntax for search. Give an example.
- Write the syntax for renames clause. Give an examples.
PART B – (4 x 10 = 40 marks)
Answer any FOUR questions.
Each question carries 10 marks.
- Explain the environment Division with example.
- Explain the Data Division with an example.
- Explain the various types of Move statements.
- Write a COBOL program to find a given integer is odd or even.
- An input file consists of the following Employee name, Employee number, Basic pay. Write a COBOL program to create an Indexed file which consists of Employee-name, Employee-number, Basic-pay and DA (DA = 25% of Basic-pay)
- Assume that an organisation has 20 departments. Each department has 5 stores. You are provided with total monthly sales of each stores for the month December 2000. Write a COBOL program to read the data, to write the sales report department wise and also write the total sales of the organisation.
PART C – (2 x 15 = 30 marks)
Answer any TWO questions.
Each question carries 15 marks.
17. Write short notes on :
- Computer Application in Marketing Information system.
- Multimedia.
18. A file consists of 1000 records. Each record contains 4 integer values representing census information of persons as follows:
Census (4 digits)
Number
Age (2 digits)
Sex(1-digit n 1-male 2-female)
Marital (1-digit 1-single
Status
2-married
3-widow
4-divorced)
Write a COBOL program to print the census number of all the girls that are single and between ages 16 and 23 into another file.
19. (a) Explain all arithmetic statements available in COBOL with examples.
- Explain all the edited picture clauses.