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
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 |
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 |
What is the default value(s) for an initialize and what keyword allows for an override of the default?
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?
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?
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
which of the following can be used as a check protection symbol a.Z b.S c.* d.+
i want to enter the name 'pandu' into ur table how?
how you will define variables length in cobol.
what will happen if i give program name and member name as different? program runs successful or w'll abend?
COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.
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?
What are VS COBOL 11 special features?
can we use the two 01 level in file discription ?