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 5800

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 17881

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

TCS,

7 13800

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 16538

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 7782

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 31000

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 8925

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

4 8027

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 12996

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 8594

i Want All cobol ERROR codes?

HCL, IBM,

4 15233

I want ALL jcl ERROR cods

1 9863

I want ALL ERROR codes in VSAM

American Express, TCS,

3 33386

i WANT ALL ERROR codes IN CICS and DB2

2 6952

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

Infosys,

4 13290


Post New COBOL Questions

Un-Answered Questions { COBOL }

How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2213


Describe the cobol database components?

776


example for sub strings ? and refernce modifications whit output pls

1944


A table has two indexes defined. Which one will be used by the SEARCH?

869


What guidelines should be followed to write a structured cobol prgm?

761






Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

771


What is the difference between comp and comp-3 usage?

775


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

830


What are 77 levels used for?

751


How do u write test cases?

1713


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1780


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2059


What is the use of intialize verb?

858


how do you reference the ksds vsam file formats from cobol programs

751


What are the different open modes available in cobol?

821