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
Explain the configuration section of a cobol program with examples of syntax.
Why would you use find and get rather than to obtain?
State the various causes of s0c1, s0c5 and s0c7.
How you can read the file from bottom?
What is the Purpose of Pointer in the string?
) what is the difference between AID and HANDLE AID?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
How do you define a variable of comp-1 and comp-2?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Explain how you can characterize tables in cobol?
) how do u code after getting data?
What is the utilization of copybook in cobol?
What is length is cobol?
What is the difference between goback, stop run and exit program in cobol?