COBOL Interview Questions
Questions Answers Views Company eMail

COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error

TCS,

1 5615

OCCURS clause is used in the DATA DIVISION on data names at (a) 01 level (b) 77 level (c) 88 level (d) any level from 02 to 49

TCS,

13 16924

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be

TCS,

7 13151

Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is

TCS,

12 15649

given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.

TCS,

2 7463

The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND

Huawei, IBM, TCS,

10 30292

The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above

TCS,

3 8649

Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER

4 7597

Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

TCS,

7 12485

Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

TCS,

7 8129

i Want All cobol ERROR codes?

HCL, IBM,

4 14851

I want ALL jcl ERROR cods

1 9685

I want ALL ERROR codes in VSAM

American Express, TCS,

3 32964

i WANT ALL ERROR codes IN CICS and DB2

2 6711

i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

Infosys,

4 12818


Post New COBOL Questions

Un-Answered Questions { COBOL }

How do you reference the following file formats from cobol programs?

693


Write a program to explain size error.

669


Have you used comp and comp-3 in your project? And how?

2006


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1950


What are the different rules to perform a Search?

613






What are the different types of condition in cobol and write their forms.

654


How are the next sentence and continue different from each other?

760


What rules are followed by the search verb.

631


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

670


What is the difference between Call and a Link?

694


Can you please let me know the centre name of INS certification in Kolkata.

1713


What is the difference between goback, stop run and exit program in cobol?

918


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2102


What are the pertinent COBOL commands?

2619


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

734