ICSE Class 10 Computer Applications
Question 3 of 30
Solved 2024 Specimen Paper ICSE Class 10 Computer Applications — Question 3
Back to all questionsconditional 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.