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 |
Can we change the password using ALTER? anyone tried and changed?
can we use reference modification an arry.
What is binary search?
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
without performing any operations on a file how can i know whether it contains data or not
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
What care has to be taken to force program to execute above 16 Meg line?
What are the different forms of EVALUATE statement?
How do define Dymanic array in cobol how do u define single demensional arry and multidymensional arry in ur cobol.
What is the difference between goback, stop run and exit program in cobol?
I have a sequential file of 100 records. How do I load the records into a two dimensional array ?