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

what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,


What is rmode(any) ?

0 Answers  


wht r the advantages of 77 level number ?

8 Answers   TCS,


What are declaratives and what are their uses in cobol?

0 Answers  


How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.

5 Answers   TCS,


I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.

1 Answers   DSRC,


what is ASRA, AEY9?

2 Answers   IBM,


SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.

3 Answers   Lehman Brothers,


How do pass the values to the parameters in cobol

2 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  


What is Comm?

2 Answers   IBM, Kemper Corporation,


WHAT IS SOC3?HOW IT CAN BE RESOLVED?

1 Answers  


Categories