πŸ“Š Ruby
Q. What is the output of the given code?
length=gets.chomp
case length.length
when length=4
print "length is 4"
when length=5
print "length is 5"
end
  • (A) ruby length is 4
  • (B) l==10
  • (C) abc length is 4
  • (D) syntax error
πŸ’¬ Discuss
βœ… Correct Answer: (A) ruby length is 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
115
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate