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 / 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 |
Post New Answer View All Answers
what is difference between cobol and cobol/400
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How arrays can be defined in COBOL?
How to print 10 to 1 if the input have only 10 digit number?
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.
Write the code implementing the perform … varying.
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Describe the cobol database components?
explain sorting techniques in cobol program?
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
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How to remove 2 duplicate records and copy only one using job control language?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
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
Define cobol?