Multiple choice technology

What kind of DML Operator is the following statement using: ( sequence_cd <= 10) ? "Valid" : "Invalid"

  1. binary

  2. unary

  3. ternary

  4. None of the above

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

The ternary operator takes three operands: a condition, a value to return if the condition is true, and a value to return if the condition is false. In this expression, sequence_cd &lt;= 10 is the condition, "Valid" is returned if true, and "Invalid" if false. Binary operators take two operands (like +, -), and unary operators take one (like -).