Ruby MCQ set number 00162

1. Syntax for unless conditional statement is unless conditional [then] code else code end a) True b) False AnswerAnswer: a [Reason:] Executes code if condition is false. If the condition is true, code specified in the else clause is executed. 2. What is the output of the given code? x=3 unless x>2 puts “x is…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership