πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Ternary 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

Explanation by: Vinay Kumar
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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
151
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
91%
Success Rate