Ruby MCQ set number 00166

1. What is the output of the given code? age = 5 case age when 0 .. 2 puts “baby” when 3 .. 6 puts “little child” when 7 .. 12 puts “child” when 13 .. 18 puts “youth” else puts “adult” end a) baby b) adult c) little child d) youth AnswerAnswer: c [Reason:]…


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