GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  COBOL
Next Question 
 COBOL  |  Question 1 of 44    Print  
Consider the following piece of code
01 GROSS-PAY
05 BASIC-PAY PIC 9(5)
05 ALLOWANCES PIC 9(3)
if BASIC-PAY has a value 1000 and ALLOWANCES has a value of 250, what will be displayed by the statement DISPLAY GROSS-PAY
a.1250
b.01000250
c.01250
d.1.250

  
Total Answers and Comments: 4 Last Update: August 12, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 27, 2005 23:58:58   #1  
Praveen Kumar Member Since: September 2005   Contribution: 6    

RE: Consider the following piece of code 01 GROSS...

Ans is b ie.. 01000250.

Reason is GROSS-PAY is group variable and will display the contents of both the sub variables defined under it.


 
Is this answer useful? Yes | No
November 27, 2007 06:52:07   #2  
aravindatcts Member Since: November 2007   Contribution: 1    

RE: Consider the following piece of code 01 GROSS...
its b
 
Is this answer useful? Yes | No
February 25, 2008 01:46:14   #3  
varun.kan Member Since: February 2008   Contribution: 2    

RE: Consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWANCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWANCES has a value of 250, what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.0125
its b
 
Is this answer useful? Yes | No
August 12, 2009 12:42:33   #4  
supriyashree nj Member Since: July 2009   Contribution: 2    

RE: Consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWANCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWANCES has a value of 250, what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.0125
b.01000250
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape