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 difference between comp & comp-4?

6 Answers  


What is cobol?

0 Answers  


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

0 Answers   HCL,


how to check whether the open command of a sequential file is successful? or not?

2 Answers   CSC, IBM,


Explain fixed length record in cobol? with suitable example

1 Answers   IBM,


how to pass 100 to s9(4) how r they inserted ?

3 Answers   TCS,


give the examples of strings in cobol

1 Answers   IBM,


what is subscript in cobol?give realtime example?

2 Answers   Wipro,


waht is inspect verb? where it can be in real time?

1 Answers   Patni,


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

0 Answers  


what are the limitations of Inline Perform?

3 Answers   Zensar,


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


Categories