The hierarchy of the execution of logical operators is
(a) NOT AND OR
(b) AND OR NOT
(c) OR AND NOT
(d) OR NOT AND
Answers were Sorted based on User's Feedback
Answer / srinivas.dappili
Hi Santhi,
This is good Question.
THE ANS: IS NOT AND OR.
I am listing precedence order and also the link where u can
Found the relevant details
The operators and their precedence order from highest to
lowest are:
• Navigation operator ( . )
• Arithmetic operators in precedence order:
o + - unary
o * / multiply, divide
o + - add, subtract
• Comparison operators: =, >, <, >=, <=, <>(not equal)
• Logical operator NOT
• Logical operator AND
• Logical operator OR
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/cque_express.html
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / milan kumar
Hierarchy is NOT,AND,OR.hierachy is a).however i'm not sure
wheather compiler will treat it in order they present(most
probable) or will follow the hierarchy if all logical
operators are present in one statement.if i'm wrong plz
scrutinize it..plz post your answer if any one 've tried it
already.....it's a smart question...
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / venkata revanth arla
not,and ,nor according to the precedence order
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the default print format? in cobol
1.Can we define condition-name conditions in FD entry.
What does MAXCC 3 means? It is used in one my codes.
How to read a record from bottom of a file which is indexed by 'A'.
What is the size of s9(19)comp3? explain
how do you reference the variable unblock file formats from cobol programs
describe 805 error
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
what are the steps to sort in a cobol program?
What is the significance of 'above the line' and 'below the line'?
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
What are the pertinent COBOL commands?