Ruby - String Operations
What is the output of this Ruby code?
str = "cat" str[1] = 'o' puts str
str = "cat" str[1] = 'o' puts str
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions