Explain me what is the difference between symbol and string?
Answer / Yunus
{"symbol": "A Symbol in Ruby is an object that represents a unique string value. It uses less memory since it shares the same value for identical symbols (e.g., :symbol_name).","string": "A String in Ruby is a sequence of characters enclosed in single quotes (`'`) or double quotes (`"`). Strings can be concatenated, sliced, and manipulated with various methods."
| Is This Answer Correct ? | 0 Yes | 0 No |
Please explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?
Mention what is the difference between procs and blocks?
How can you removed from array in ruby?
Are ruby strings are mutable?
Explain about interpolation?
What is the difference between “#==” and “#equal?”
Tell us the types of variables available in ruby class?
What's the difference in scope for these two variables: @name and @@name?
What is ruby class?
Describe class libraries in Ruby?
Explain about ruby code blocks?
How will you comment in ruby.