You are on page 1of 4

COBOL QUESTION BANK

Q. 1 Write the syntax of all divisions in COBOL programme with suitable example. Q. 2 Explain in detail COBOL coding sheet. Q. 3 Write notes on the following: 1. Editing characters 2. Picture clause 3. Value clause Q. 4 What do you understand by the following clauses: 1. SYNCHRONIZED 2. RENAME 3. REDEFINE 4. GO TO DEPENDING ON Q. 5 Explain the difference between MOVE and CORRESPONDING MOVE with an example. Q. 6 What are Literals. Give different types of literals. Q. 7 Write edited value of each picture clause. 1. ZZ999 2. ZZZZZ 3. ***** 4. ZZ9.99CR 5. ZZ, ZZ9.99 6. 9(5)01234 00000 00357 01357 12345 34215

Q. 8 Explain Arithmetic verbs in COBOL. Q. 9 Explain USAGE clause and all of its types. Q. 10 What is Condition. Explain all types of conditions used in COBOL. Q. 11 Explain the concept of CONDITION-NAME condition in COBOL.

Q. 12 Explain OCCURS clause. Q. 13 What is meant by subscripting. How one dimensional and two dimensional arrays are handeled in COBOL. Q. 14 Explain the difference between GO TO and PERFORM with an example. Q. 15 Explain with suitable example giving syntax of: 1. PERFORM with TIMES option. 2. PERFORM with UNTIL option. 3. PERFORM with VARYING....AFTER option. Q. 16 Explain the INSPECT verb with an example. Q. 17 Explain STRING and UNSTRING verbs with syntax and example.

PROBLEMS and PROGRAMMES Q. 1 Calculate memory of following: 01 REC1 02 FIRST-GROUP 03 A1 PIC X(4). 03 A2 PIC 99. 02 SECOND-GROUP REDEFINES FIRST-GROUP 03 A3 PIC 9(3). 03 A4 PIC 9(3). 02 THIRD-GROUP 03 A5 0CCURS 5 TIMES PIC 99. Q. 2 01 REC-3 03 B1 OCCURS 5 TIMES PIC XX. 03 B2 OCCURS 8 TIMES PIC 999.

Q. 2 Write COBOL statements in PROCEDURE division to calculate TAX for each EARNINGS according to following information. EARNINGS 1) <= Rs. 10,000 2) > Rs. 10,000 but <= 15,000 3) > 15,000 but <= 20,000 4) Greater than 20,000 Q. 3 Consider the following input data: 1) Item No. 2) Scrap Value 3) Years of life And calculate the yearly depriciation according to the following formula: Yearly depreciation = (Cost Scrap Value) / Years of life. The field Yearly depreciation, Cost and Scrap Value must have two places after the assumed decimal points. Q. 4 WAP to create an employee table using the concept of Indexing, having following fields: 1) EMP-ID 2) EMP-NAME 3) SALARY Count the number of employees whose salary is greater than 10,000. Q. 5 WAP to create an Account table having following fields: 1) ACCOUNT-NO 2) ACC-HOL-NAME 3) ADDRESS TAX 0.00 15% of the amount above Rs. 8000 1050 + 18% of the amount above Rs. 15000 1950 + 25% of the amount above Rs. 20,000

4) AMOUNT (1) Search or find whether user entered name is present in the table or not. (2) Find number of account holders whose amount is greater than 50,000
Q. 6 Show the values of following variables or data names after executing UNSTRING statement. 77 SEND-ID PIC X(3) VALUE XY, ZP. Q22. 77 A1 PIC X(3). 77 A2 PIC X(4). 77 A3 PIC X(2). UNSTRING SEND-ID DELIMITED BY , OR . INTO A1, A2, A3.

You might also like