Ternary operator is a:

ICSE Class 10 Computer Applications PYQ · 2024 Specimen · Section A

1(iii)1 Mark · 2024 · Section A · 2024 Specimen

Ternary operator is a:

Show SolutionHide Solution↓

conditional operator

Reason — Ternary operator is a conditional operator as it evaluates the given condition. Its syntax is as follows:

condition? expression 1 : expression 2

If the condition is true then result of ternary operator is the value of expression 1. Otherwise the result is the value of expression 2.

← Previous questionNext question →

Browse the free Computer Applications sample bank