Computer Applications
Out of the following options, what is shown in this illustration.

- Unary Operator
- Arithmetical Operator
- Ternary Operator
- Binary Operator
Java Operators
10 Likes
Answer
Ternary Operator
Reason — The given expression Var = test_expr ? expr1 : expr2 uses the ternary operator, which is a type of conditional operator in Java. It works with three parts:
test_expr:the condition to check.expr1:the value assigned if the condition is true.expr2:the value assigned if the condition is false.
Answered By
5 Likes
Related Questions
Which of the following is the correct precedence of logical operators?
- !, &&, ||
- &&, !, ||
- ||, !, &&
- &&, ||, !
Choose the odd one out from the following:
- >
- ==
- &&
- <
Given: String st = (a>= 90)? "Excellent": "Best";
Predict the output, when a = 90.- Best
- Excellent: Best
- Best: Excellent
- Excellent
Choose the odd one out from the following:
- Unary operator
- Binary operator
- Ternary operator
- Bitwise operator