Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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?

Answer Posted / avi

The value of J before the Para call is 5.
Now,the loop executes for 6 times, so 5*6 is added to the
existing value of J.
J=5+(5*6)
=35.
The correct option is 35.

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1280


A table has two indexes defined. Which one will be used by the SEARCH?

1330


how do you reference the fixed unblock file formats from cobol programs

1307


Write the code to count the sum of n natural numbers.

1259


What are the various section in data division and briefly explain them.

1254


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1267


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1386


How can you get the ksds file records into your cobol program?

1138


what are decleratives in cobol?

2311


what is difference between cobol and cobol/400

23083


What is cobol?

1292


Have you used comp and comp-3 in your project? And how?

2523


How you can characterize tables in cobol?

1254


What is the LINKAGE SECTION used in COBOL?

1602


Difference between array and sub-script ?

1709