Ruby - String Operations
Which of the following is the correct way to freeze a string in Ruby?
.freeze on the string object, like "hello".freeze..freeze on the string literal. Options B, C, and D use invalid syntax or incorrect method calls.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions