1.

A case statement compares the expression specified by case and that specified by when using the === operator and executes the code of the when clause that matches.(a) True(b) FalseI got this question by my school teacher while I was bunking the class.The doubt is from The Case Conditional Statement topic in chapter Conditional Statements of Ruby

Answer»

Right answer is (a) True

Easy explanation: A case STATEMENT is basically the MULTIPLE if-elsif-else statements.



Discussion

No Comment Found

Related InterviewSolutions