if a pic 9(3) value 354,b pic x(2) value '46' then
a)a>b
2)a<b
3)error
Answers were Sorted based on User's Feedback
Answer / piyush mani
i think it will create an error bcoz we can't compare numeric variable to non-numeric variable.
Is This Answer Correct ? | 8 Yes | 4 No |
Answer / billyboyo
IBM Cobol will do an alphanumeric comparison because one of
the fields is PICTURE X. "354" will be compared to "45" and
be found to be lower. Answer b) is correct.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / seema dawlekar
As picture clause for variable b is x(2), which means that
it can accept both numeric and characters of length 2, but
the care we should take here is that we should enclose them
in the single quotes, therefore to my expectation option b
is write.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / raguveer sunendhu thollitu
I dont know..
Depends on the collating sequence.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / saidinesh
I accept that u can enter the value of numeric as well as
alpha numeric. but we can not give the numeric values in
cot's. please check it once...
Is This Answer Correct ? | 0 Yes | 1 No |
can we redefine 77 level item is it possible
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?
What is the difference between index and subscript?
if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error
What COBOL construct is the COBOL II EVALUATE meant to replace?
What is an in-line perform ?
Can JUSTIFIED be used for all the data types?
Can we move X(7) to S9(7) COMP?
What is binary search?
Which Search verb is equivalent to PERFORM…VARYING?
what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.
What is "Call by content" and "call by reference"?