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


Suppose a program has the following code. What will be the
output?

MAIN-PARA.
DISPLAY 'MAIN-PARA'
PERFORM SECTION-A.
STOP RUN.

SECTION-A.
PARA-A1.
DISPLAY 'SECTION A PARA A1'.
PARA-A2.
DISPLAY 'SECTION A PARA A2'.

Answers were Sorted based on User's Feedback



Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY '..

Answer / deependra

The output is as follow:-
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2

Is This Answer Correct ?    24 Yes 1 No

Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY '..

Answer / brij

the above one is correct

Is This Answer Correct ?    5 Yes 0 No

Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY '..

Answer / wairagade

Output = MAIN-PARA

See the Main-Para. the flow is like , it will display MAIN-
PARA text and then perform SECTION-A in which nothing is
coded, it will give control back to OS.

If PERFORM SECTION-A thru PARA-A2

Then
O/P
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2

Please correct me if I stated wrong

Is This Answer Correct ?    3 Yes 3 No

Suppose a program has the following code. What will be the output? MAIN-PARA. DISPLAY '..

Answer / suresh ramaiyan

The output is :
---------------
MAIN-PARA
SECTION A PARA A1
SECTION A PARA A2

Because, There is no THRU command in PERFORM statement. So
it will execute still it reaches the 'EXIT' command or it
will perform the full section or until the next section
reaches.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

How many bytes do a s9 (7) comp-3 field occupy?

1 Answers  


When search all is used in cobol program without sorted input data?

6 Answers   CGI, Principal Finance,


Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?

1 Answers  


Difference between cobol and cobol-ii?

0 Answers  


Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?

5 Answers   IBM,


Why IBM?

1 Answers   IBM,


What is Static and Dynamic linking ?

3 Answers  


Are you comfortable in cobol or jcl?

0 Answers  


what is record label is empty or standard in file description of data division?

2 Answers   HCL,


How many maximum number of procedures can we write in one COBOL program?

5 Answers  


Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.

11 Answers   Deloitte,


What is SQL Code -904 and -903 in DB2 And how to handle it?

1 Answers   IBM,


Categories