Operator in Java - Quiz

  • A100
  • BDisplays error as ++a is not enclosed in double quotes in println statement
  • C Compiler displays error as ++a is not a valid identifier
  • DNone of these
  • A1 < x < 100 || x < 0
  • B((x < 100) && (x > 1)) || (x < 0)
  • C((x < 100) && (x > 1)) && (x < 0)
  • D(1 > x > 100) || (x < 0)
  • ATo denote a comment
  • BTo represent a ternary operator
  • CTo indicate a logical OR
  • DTo signify the beginning of a question