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 two statements
MOVE 10 TO N
PERFORM PARA-X N TIMES
STOP RUN
PARA-X
MOVE 5 TO N
how many times PARA-X willbe exicuted?
a.10
b.5
c.infinate
d.execution error

Answers were Sorted based on User's Feedback



consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / guest

10

Is This Answer Correct ?    12 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / vineet pasricha

It will execute 10 times

Is This Answer Correct ?    6 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / rams

I tried this code. It executed 11 times...

Is This Answer Correct ?    6 Yes 2 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / pradeep

It will execute only 10 Times only

See Below Code

IDENTIFICATION DIVISION.
PROGRAM-ID. MOVEPGM.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-COUNT PIC 9(2).
PROCEDURE DIVISION.
A1000-MAIN-PARA.
MOVE 10 TO WS-COUNT
PERFORM PARA-X WS-COUNT TIMES.
STOP RUN.
PARA-X.
DISPLAY "TEST1".
MOVE 5 TO WS-COUNT.

Output Looks like this:

COMMAND INPUT ===>
********************************* TOP OF DATA *****
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
TEST1
******************************** BOTTOM OF DATA ***

Is This Answer Correct ?    4 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / raj

10 times

Is This Answer Correct ?    3 Yes 0 No

consider the following two statements MOVE 10 TO N PERFORM PARA-X N TIMES STOP RUN PAR..

Answer / rehan

I think it'll execute infinite times

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More COBOL Interview Questions

how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


wht r the advantages of 77 level number ?

8 Answers   TCS,


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS

2 Answers  


I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...

2 Answers   CTS, DSRC,


What is mean by maxcc

7 Answers   Syntel,


how to display the dataset information?

2 Answers  


Give some examples of command terminators?

0 Answers  


What is different between variable length and fixed length?

2 Answers   TCS,


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


Categories