Home / Programming MCQs / Ruby MCQs / Question

V

Vinay Kumar • 8.45K Points
Tutor III

Q. Guess the operator : If Condition is true ? Then value X : Otherwise value Y?

(A) Range Operators
(B) Ternary Operator
(C) Parallel Operator
(D) Arithmetic operator

Explanation:

first evaluates an expression for a true or false value and then Ternary Operator executes one of the two given statements depending upon the result of the evaluation

You must be Logged in to update hint/solution

Discusssion

Login to discuss.