consider the following piece of code

01 GROSS-PAY
05 BASIC-PAY PIC 9(5)
05 ALLOWENCES PIC 9(3)
if BASIC-PAY has a value 1000 and ALLOWENCES has a value
of 250,what will be
displayed by the statement
DISPLAY GROSS-PAY
a.1250
b.01000250
c.01250
d.1.250

Answers were Sorted based on User's Feedback



consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05..

Answer / tarun nigam

Since the over all PIC of Gross-Pay is 9(8). The value of
Gross Pay would be 01000250 i.e. the answer (B) is correct

Is This Answer Correct ?    10 Yes 0 No

consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05..

Answer / rama krishna

b. since PIC 9(5) = 01000
and PIC 9(3) = 250

Hence the result is 01000250

Is This Answer Correct ?    6 Yes 0 No

consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05..

Answer / ajith

(b)

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More COBOL Interview Questions

how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it

2 Answers  


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

0 Answers  


Write a program to explain size error.

0 Answers  


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

0 Answers  


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,






What is report-item in COBOL?

0 Answers   Arigo Infotech,


What is amode(31)

0 Answers  


What is an in line perform? When would you use it? Anything else you wish to say about it.

0 Answers  


why 02 level number can't be use as a separate level number like 01 or 77 ?

3 Answers  


what is difference between cobol and cobol/400

1 Answers   HCL,


What is different between variable length and fixed length?

2 Answers   TCS,


How will you find the currepted records in a file

2 Answers  


Categories