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

If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value

3 Answers   CTS,


I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you

1 Answers  


diffrence between z(2) and z9(2)

4 Answers   Cap Gemini,


how do u list the abended jobs?

1 Answers   IBM,


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  






what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?

4 Answers   CSE, TCS, Wipro,


Hi Devolopers.. i need ur help.. i have 3 years of exp in Manual testing and SQL, next month onwards i shifted in to MAINFRAME TESTING... i have ZERO Knowledge abt mainframes.... PLS SUGGEST ME WHAT I LEARN in AMEERPET? mainframe testing or mainframe total devolopment subject... AS a devoloper u know every thing tester what to do PLSSSSSSSSS help me ITS VERY URGENT...

1 Answers  


how do you reference the variable unblock file formats from cobol programs

0 Answers  


how many bytes does a s9(12)COMP-4 field occupy?? a.2 b.4 c.8 d.1 ans with reason please

2 Answers  


How to open and see copy book ?

3 Answers  


a. Can the OPTIONAL clause in COBOL only be coded for input files? b. If it is coded for files opened in OUTPUT, I-O or EXTEND mode, will it give a compilation error? c. If there are no compilation errors and if such files are not coded in the JCL, will the OPEN statement run fine when these files are opened? d. How will a WRITE statement work for the above files?

2 Answers  


what is a load module ?

3 Answers   TCS,


Categories