GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 3 of 44    Print  
what is the result of the following?
DIVIDE A INTO B GIVING C.
a.C=A/B
b.the reminder of B/A is stored in C
c.C=B/A
d.the reminder of A/B is stored in C

  
Total Answers and Comments: 8 Last Update: September 09, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Rajiv Mishra
 

There are two ways to use Divide Verb:

1) Divide A BY B Giving C  => C = A/B

2) Divide A into B Giving C => C = B/A

Above answer was rated as good by the following members:
chandradutt
September 26, 2005 02:33:12   #1  
nbn        

RE: what is the result of the following? DIVIDE A...
c.C B/A

 
Is this answer useful? Yes | No
September 28, 2005 00:15:07   #2  
Praveen Kumar Member Since: September 2005   Contribution: 6    

RE: what is the result of the following? DIVIDE A...

Ans is c ie B/A .

As the syntax for DIVIDE verb in cobol is

DIVIDE A INTO B GIVING C REMAINDER D.

which results in

C B/A and D B MOD A.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 07, 2007 23:27:31   #3  
Rajiv Mishra        

RE: what is the result of the following? DIVIDE A...

There are two ways to use Divide Verb:

1) Divide A BY B Giving C > C A/B

2) Divide A into B Giving C > C B/A

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 04, 2008 16:08:01   #4  
roopali3 Member Since: February 2008   Contribution: 5    

RE: what is the result of the following? DIVIDE A INTO B GIVING C.a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C
answer is c
 
Is this answer useful? Yes | No
August 01, 2008 09:41:09   #5  
shailendra.tripathi Member Since: July 2008   Contribution: 1    

RE: what is the result of the following? DIVIDE A INTO B GIVING C.a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C
answer is c a/b
 
Is this answer useful? Yes | No
December 05, 2008 02:43:01   #6  
debdas73 Member Since: December 2008   Contribution: 2    

RE: what is the result of the following? DIVIDE A INTO B GIVING C.a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C
C A/B
 
Is this answer useful? Yes | No
August 12, 2009 12:45:21   #7  
supriyashree nj Member Since: July 2009   Contribution: 2    

RE: what is the result of the following? DIVIDE A INTO B GIVING C.a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C
c. C B/A
 
Is this answer useful? Yes | No
September 09, 2009 01:40:40   #8  
balasu Member Since: September 2009   Contribution: 2    

RE: what is the result of the following? DIVIDE A INTO B GIVING C.a.C=A/B b.the reminder of B/A is stored in C c.C=B/A d.the reminder of A/B is stored in C
The answer is c b/a (c)
 
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