Code No: NR-210503 II B.Tech.

I-Semester Supplementary Examinations, November-2003 DATA PROCESSING AND FILE ORGANIZATION (Computer Science and Engineering, Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Max. Marks: 80

Set No.

1

1. 2.a) b)

Answer any FIVE questions All questions carry equal marks --Explain the organization of a COBOL Program. Explain the importance of various divisions and section in a COBOL Program. Illustrate through an example. Give the syntax of STRING and UNSTRING verbs in COBOL. Explain their working through examples. Develop complete COBOL program with appropriate indentation to check whether a member is a prime number or not. Include appropriate comments in the program. What is the use of structured flow charts? Draw the flow chart to find the maximum and minimum elements from a given N numbers. (The flow chart must use all types of symbols). Develop – COBOL program for the base. What are the different ways of accessing the records from a relative file? Explain. Explain all the necessary COBOL statements required to read records from a relative file. Explain with syntax and examples the FILE_CONTROL paragraph of indexed sequential files. Explain with syntax and examples the following procedure division statements for indexed sequential files. Explain the following clauses with their proper syntax and examples:(a) RELATIVE KEY IS (b) FILE STATUS IS (c) ORGANIZATION IS (d) AT END What is an input procedure as used in the SORT VERB ? What is an output procedure? What is meant by SORT KEY? Is it possible to sort upon more than one key? Explain meaning of following terms. (a) Page footing (b) Control heading ^^^ (c) Report fooling

3.

4.a) b) 5.a) b) 6.

7.a) b) 8.

Code No: NR-210503 II B.Tech. I-Semester Supplementary Examinations, November-2003 DATA PROCESSING AND FILE ORGANIZATION (Computer Science and Engineering, Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Answer any FIVE questions All questions carry equal marks --1.a) b) Max. Marks: 80

Set No.

2

What is the difference between a GOTO statement and a PERFORM statement Write a routine that branches to a paragraph named MERIT-RES. If a student is in a senior class and his grade (GRADE) is A. Assume that the class code (CLASSCODE) for senior is SR. If the student record does not satisfy the above condition, the control should go to a paragraph named NEXT-STUDENT. Also draw the flow chart for this routine. Give the syntax of INSPECT and copy verbs in COBOL. Illustrate their working through examples. Develop a complete COBOL program with appropriate indentation to check whether a given number is a perfect number or not. Include appropriate comments in the program.(A perfect number is a number for which all the factors when added, yield the number itself. For example the factor of a number 6 are 1,2 and 3, 1+2+3=6) A customer prepares a savings withdrawal slip for $340 for his account. The teller mistakenly subtracts $304 from the savings passbook and from the card. However, she does give him $340 cash as the withdrawal amount. Describe the controls you would build into the related batch processing system that would “catch” such errors and would provide for corrective action-manual or automated. Explain Tape Record, Blocks, and Inter block gaps. Draw the sample Tape recording format that contains one record per block. List the permissible I/O statements for Indexed file organizations. Explain their action. What is the difference between file updation by copy and file updation by overlay? Explain. Explain DECLRATIVES and FILE STATUS clause for relative files. What is meant by data block? Write down the important points that indicate the advantages and disadvantages of blocking. Contd…2

2.a) b)

3.

4.a) b) 5.a) b) 6.a) b)

Code No. NR-210503 7.

-2-

Set No.2

Explain the following (a) INPUT PROCEDURE (b) OUTPUT PROCEDURE (c) USE of SORT / MERGE Facility. Compare the Role of USE statement (a) When used in connection with Input/Output statement. (b) When used with Report-writer facility. Illustrate with examples. ^^^

8.

Code No: NR-210503 II B.Tech. I-Semester Supplementary Examinations, November-2003 DATA PROCESSING AND FILE ORGANIZATION (Computer Science and Engineering, Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Answer any FIVE questions All questions carry equal marks --1.a) b) 2.a) b) 3. 4.a) b) 5.a) b) 6.a) b) 7.a) b) Max. Marks: 80

Set No.

3

Give the syntax and explanation through examples of any three forms of PERFORM verb. What are the various editing function available in COBOL? Explain it detail (with examples) any three editing function. What is the function of class condition? Write the structure of a class condition and write various rules of class condition. Illustrate through examples. What is the use of Condition-Name condition? Write the rules applicable for a Condition-Name condition. Illustrate through examples. Explain with necessary flow chart the Master file creation and maintenance procedure Draw and explain the format of information on a tape file. Explain COBOL language Environment Division instructions for Tape files. What are the implementation differences between indexed files and relative files? Explain. What is meant by Input Output Control System? Explain. Distinguish between winchester disk and floppy disk. How can you read a relative file sequentially? Explain with the proper procedure statement required. Explain SORT VERB with clear description. Explain SEARCH VERB with clear description.

8.a) Explain how control break is related to the printing of report group. b) Explain applications of report writer.

^^^

Code No: NR-210503 II B.Tech. I-Semester Supplementary Examinations, November-2003 DATA PROCESSING AND FILE ORGANIZATION (Computer Science and Engineering, Computer Science and Information Technology and Computer Science and Systems Engineering) Time: 3 hours Answer any FIVE questions All questions carry equal marks --1.a) b) 2. 3.a) b) 4.a) b) c) 5. Max. Marks: 80

Set No.

4

Write a Cobol program using PERFORM-UNTIL statement to find the sum of odd numbers from 1 through 100 and also draw the flow chart. Write a Cobol program using PERFORM-UNTIL statement to find the sum of all the even numbers from 1 through 100 and also draw a flow chart. Explain class conditions, condition-name conditions and Complex conditions with relevant examples. Describe Batch processing of Business files. Explain with an example. Differentiate between Master files and Transaction files. List the differences between a magnetic tape and magnetic disk ? Explain how the records are stored in those devices. Define the following terms: i) sector ii) track iii) block iv) cylinder With a neat diagram explain the structure of a conventional magnetic disk. Write a menu driven program to update an indexed sequential file “BANK” which contains the fields ACCNO, BALANCE, and LAST_DATE representing account number, current balance and last date of transaction respectively. The key field is ACCNO. The transactions permissible are deposit and withdrawal. A relative master file INVENTORY has the following format: Item code( 4 digits)-key field, Item name( 20 characters), Quantity in stock(4 digits). Write a Cobol program to update the STOCK file. Distinguish between sequential files and relative files. Explain the following. (a) What events take place when SORT statement is executed? (b) Explain File SORT in Sequential files. (c) Explain restrictions on report writer. Contd…2

6.a)

b) 7.

Code No. NR-210503 8.a) b)

-2-

Set No.4

Why is COLUMN NUMBER clause used in the description of an elementary item in a report group. Does the Data name LINE-COUNTER need to be defined in Data division? ^^^