Multiple choice technology programming languages

The valid conditional operator

  1. -NE

  2. -GT

  3. -LT

  4. -eq

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

In shell test constructs and conditionals, -eq is the valid integer comparison operator. -NE, -GT, and -LT are not standard shell operators - the correct forms are -ne, -gt, and -lt (lowercase). String comparisons use = and !=.