Multiple choice technology programming languages

if a not = b and c Means

  1. a not = b and a not = c

  2. a not =b or a not = c

  3. Error in syntax

  4. None of the bove

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The condition 'a not = b and c' is evaluated as '(a not = b) and (a not = c)' because the relational operator 'not =' has higher precedence than the logical operator 'and'. The comparison 'a not = c' applies to the same variable 'a' from the first comparison, not to 'b'. This is standard COBOL relational expression syntax.