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 ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What rules are followed by the search verb.

638


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


What is the difference between comp and comp-3 usage?

681


What guidelines should be followed to write a structured cobol prgm?

673






What is the difference between next sentence and continue in cobol programing language?

712


Which is not true about evaluate statement

1586


What are the different types of condition in cobol and write their forms.

658


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5693


What are the cobol coding sheets?

664


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

998


What is amode(24)?

684


Name the divisions, which are available in a cobol program?

685


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


) How do u handle errors in BMS macro

1510