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 a scope terminator? Give examples.
What are the divisions in a cobol program?
What is the usage of comp fields in cobol?
why occurs clause not mentioned in 01 level
6 Answers HCL, NIIT, TCS, Tesco,
What is cobol?
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 ?
if someone is using my file,how can i find which user id is using?
if we have a 10 steps how to override the 4th step in jcl?
Which division and paragraphs are mandatory for a COBOL program?
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it
Should I use STOP RUN in the sub program??why?
whats the disadvantage of search all over search?