1.

Which of the following is valid conditional statement in Ruby?(a) elseif(b) elsif(c) else if(d) elseiffThe question was posed to me during an online interview.My doubt stems from The Elsif Conditional Statement topic in section Conditional Statements of Ruby

Answer»

The CORRECT CHOICE is (B) elsif

Best explanation: We use elsif conditional statement in RUBY.



Discussion

No Comment Found

Related InterviewSolutions