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

What is the default value(s) for an initialize and what keyword allows for an override of the default?

0 Answers  


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?

5 Answers  


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


which of the following can be used as a check protection symbol a.Z b.S c.* d.+

2 Answers   TCS,






i want to enter the name 'pandu' into ur table how?

1 Answers   Fidelity,


how you will define variables length in cobol.

3 Answers   Temenos,


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.

7 Answers   HCL,


I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?

2 Answers  


What are VS COBOL 11 special features?

1 Answers  


can we use the two 01 level in file discription ?

6 Answers  


Categories