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


If A>B
next sentence
end-if
display 1
display 2.
display 3.

If a>b, it will display only 3.(the next sentence,
ie., after fullstop/period)
____________________________________

if a>b
continue
end-if
display 1
display 2.
display 3.

If a>b, it Will display 1 2 3 (the next statement)
____________________________________

if a>b
continue
display 1
end-if
display 2
display 3.
display 4.

If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?

Answers were Sorted based on User's Feedback



If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / dharma

it will display 2 3 4 only

Is This Answer Correct ?    4 Yes 1 No

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / muttaiah

Really, Did someone execute this code before posting your
answers..

If a novice goes through this chat he will get confused
like which answer is correct

The asnwer is 2 3 4 why because whenever control encounters
continue it will start executing the stmt only after scope
terminator which is end-if in this case.

so 2 3 4 is the answer i have executed the code also.

Is This Answer Correct ?    3 Yes 0 No

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / sakthi kumar

Actually Continue is a do nothing statement, so it will
proceed as it is.

It will display 1 2 3 4

Is This Answer Correct ?    4 Yes 2 No

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / supriya tenany

Displaying '1', depends actually on the 'if' condition, since it is in the 'if' loop.

Is This Answer Correct ?    1 Yes 0 No

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / rajeumesh

Answer # 3 is correct

Is This Answer Correct ?    1 Yes 0 No

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / santy

for the first condition:-
If A>B
next sentence
end-if
display 1
display 2.
display 3.

If a>b, it will display only 3.(the next sentence,
ie., after fullstop/period)- is the Correct Answer.

for the second condition:-
if a>b
continue
end-if
display 1
display 2.
display 3.

If a>b, it Will display 1 2 3 (the next statement)
This is also correct answer, b'cos continue is doing
nothing other than passing control to next statement.

for the third condition:-

if a>b
continue
display 1
end-if
display 2
display 3.
display 4.

If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?

Correct answer is the 1 2 3 4.

b'cos here continue will excuite next statement and after
the 'display3.' is excuitute then control pass to 'display
4.' sentence.

hopes now you r clear ur idea.

Is This Answer Correct ?    3 Yes 2 No

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / suputhru

Correct answer is the 1 2 3 4.

Is This Answer Correct ?    1 Yes 0 No

If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will displ..

Answer / kamal

if a>b
continue
display 1
end-if
display 2
display 3.
display 4.
it will disply 1,2,3,4.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More COBOL Interview Questions

If by mistake we MOVE a working storage variable into LINKAGE area. What will happen??

4 Answers   Accenture,


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


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

3 Answers   IBM, TCS,


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

0 Answers  


What are the access modes of START statement?

0 Answers  


How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one

10 Answers   IBM,


What are various search techniques in cobol? Explain.

0 Answers  


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


What are differences between Static Call and Dynamic Call?

10 Answers   IBM, KBC, Keane India Ltd, Verizon,


can we write paragraph in area B .....

4 Answers   L&T,


Difference between array and sub-script ?

0 Answers   HCL,


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

0 Answers  


Categories