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

Answers were Sorted based on User's Feedback



what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the r..

Answer / sunaina

Here in the above formula, we are Dividing the value of B
by A, and storing the value into C.

Ex:
A=10
B=20

then
C= B/A i.e, C= 20/10
the value 2 is stored in C.

So the result is:

C=B/A.

Is This Answer Correct ?    17 Yes 2 No

what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the r..

Answer / vijaya sharma

c.C=B/A

Is This Answer Correct ?    16 Yes 2 No

what is the result of the following? DIVIDE A INTO B GIVING C. a.C=A/B b.the r..

Answer / dimpy19

c. B/A

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

wht is the difference between goto and perform stmts

7 Answers   DELL,


Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


How do u debug a S0C7 abend? (aswered till we get the field which caused that) After knowing the field which caused that how do u know the record which caused that if it is in production env? (dumb) Ok let us assume that we got to know that 100th record caused that and I wanted to skip only 100th record from the file and process from 101th. How to do that in JCL using SORT? (tried with STOPAFT but ended up dumb when he said smthing else is ther)

3 Answers   IBM,


i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?

1 Answers   HCL,






What is the difference between structured cobol programming and object alternativelyiented cobol?

0 Answers  


when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible

1 Answers   Patni,


I have a File that has duplicate records. I need only those records that occur more than thrice.?

3 Answers   IBM, Wipro,


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

0 Answers  


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


what is dynamic array in cobol? what is the difference b/w array and table in cobol?

2 Answers  


Categories