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


How many times the loop runs here
01 a pic 9(2) value 1.
perform para1 until a=10
move 1 to a.
stop run.
para1:
move 10 to a.

Answers were Sorted based on User's Feedback



How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

Answer / priyanka

Para1 would be executed 1 time. after 1st time the value of
a is 10 and it comes out of loop.

it move 1 to a and stop execution.

Is This Answer Correct ?    23 Yes 0 No

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

Answer / guest

1 time

Is This Answer Correct ?    15 Yes 2 No

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

Answer / vikas

Just once. The 'move 1 to a' is not in the para1. So its is NOT infinite loop.

Is This Answer Correct ?    0 Yes 0 No

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

Answer / harish

It depends on two coditions with PERFORM WITH TEST BEFORE/AFTER.

Is This Answer Correct ?    0 Yes 0 No

How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. ..

Answer / vinod

it dirctly move 10 to a when perform para1 until a=10
after that it moves to the para the condition is checked
and pass the a value to 10.
again the perform is check the condion its true move the
value to 1.agin it passes the same so it is a infinite loop.

Is This Answer Correct ?    3 Yes 23 No

Post New Answer

More COBOL Interview Questions

db2 variable decimal(15,2) what is the equalent size of cobol variable

2 Answers   Syntel,


Difference between array and sub-script ?

0 Answers   HCL,


I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?

2 Answers  


i have variable record in the 5th, i want to sort from 5th filed ? how ?

2 Answers   TCS,


Write a program to concert an Indexed file into Sequential file?

1 Answers   Covansys,


COMP-3 field occupy ?

8 Answers  


how to access vsam files in cobol and how to differentiate that this is ESDS file

1 Answers   EDS,


study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid

4 Answers   TCS,


I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division

1 Answers  


write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...

5 Answers   iGate,


what is the difference between Normal vaiable and comp variable.

5 Answers   DELL,


Can JUSTIFIED be used for all the data types?

3 Answers  


Categories