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...


Consider the following:

77 W-NUM PIC 9 VALUE 0
------
MOVE 1 TO W-NUM
PERFORM PARA-X UNTIL W-NUM > 9.
------
PARA-X
ADD 1 TO W-NUM

How many times PARA-X is executed ?

Answers were Sorted based on User's Feedback



Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM ..

Answer / guna

9 times.
Initially, W-Num value will be 1.
1>9, so para will be executed. - 1 time
2>9, so para will be executed. - 2 times
3>9, so para will be executed. - 3 times
4>9, so para will be executed. - 4 times
5>9, so para will be executed. - 5 times
6>9, so para will be executed. - 6 times
7>9, so para will be executed. - 7 times
8>9, so para will be executed. - 8 times
9>9, so para will be executed. - 9 times
10>9, so para will not be executed

so para is executed for 9 times.

Is This Answer Correct ?    7 Yes 9 No

Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM ..

Answer / satish29

Infinite loop because w-num value does not change.

Is This Answer Correct ?    2 Yes 5 No

Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM ..

Answer / ajith

9

Is This Answer Correct ?    2 Yes 5 No

Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM ..

Answer / ram.g

9 is the correct ans

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More COBOL Interview Questions

What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,


When is a scope terminator mandatory?

3 Answers  


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

0 Answers   Infosys,


How can we know that cobol program is using report file or simple file....?

4 Answers  


i want to learn mainframes. i completed MCA ,whats the future of mainframes

5 Answers  


what is the maximum error code in mainframe

2 Answers  


How can you add a particular field in copybook?

2 Answers   L&T,


How can you add a particular field/coloumn in copybook?

3 Answers   ADP, DELL, L&T,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


What does the IS NUMERIC clause establish ?

2 Answers  


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


How can you pass values from COBOL program to non-COBOL programs?

2 Answers  


Categories