Skip to content

UGC NET CS 2015Programming Languages and Computer Graphics › Language Design and Translation IssuesVerified

UGC NET CS 2015 PYQ: Given that $x=7.5, j=-1.0, n=1.0, m=2.0$ the value of $--x+j==x>n>=m$ is:

Given that $x=7.5, j=-1.0, n=1.0, m=2.0$ the value of $--x+j==x>n>=m$ is:

  1. A
    0
    Correct answer
  2. B
    1
  3. C
    2
  4. D
    3

Answer

(A) 0

Approach

Apply C precedence: unary, then relational, then equality, evaluating left-associative relational operators in order.

Reviewed by UGC IQ Editorial Team.