GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 9 of 44    Print  
how many times PARA-A is performed :
PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1
UNTIL TIMES-COUNTER >0
PARA-A
MOVE P TO Q
MOVE H TO TIMES COUNTER
a.10
b.1
c.11
d.0

  
Total Answers and Comments: 3 Last Update: November 20, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 27, 2006 23:57:32   #1  
ritesh kumar        

RE: how many times PARA-A is performed : PERFORM ...

ans:-> 0

It will execute 0 times.


 
Is this answer useful? Yes | No
February 02, 2009 13:29:48   #2  
tungal Member Since: July 2007   Contribution: 7    

RE: how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
Yes that is right. Para-A will execute 0 times as TIMES-COUNTER does not contain numeric value.
 
Is this answer useful? Yes | No
November 20, 2009 05:32:52   #3  
chandradutt Member Since: November 2009   Contribution: 3    

RE: how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0
PARA-A will execute atleast once depending H is not negative.
Assuming that H is Positive. The Answer should be 'b 1'.

 
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