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
how do you reference the printer file formats from cobol programs
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
A table has two indexes defined. Which one will be used by the SEARCH?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how to access the file from prodution from changeman tool and to submit a file to production
Write some characteristics of cobol as means of business language.
What is the usage of comp fields in cobol?
What are declaratives and what are their uses in cobol?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How you can read the file from bottom?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do we get current date from system with century in COBOL?
What is a report item?