Live quiz

ruby - Part 13

Question 1 of 25 Hints left: 3
Q1

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
  • B
  • C
  • D