Question 134Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)

Which operators are known as ternary operator?

  1. A?,:
  2. BNone of the given options
  3. C?, ;;
  4. D::, ?.
Show answerHide answer

Correct answer: (A) ?,:

Explanation

The conditional operator ?: is the ternary operator because it takes three operands: condition ? expr1 : expr2.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 3 (4:30 PM)

This is question 134 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 3 (4:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.