Explain ruby data types.
Answer / Deshdeepak Tripathi
Ruby supports several data types, including:n1. Fixnum - Represents integers (whole numbers) up to 2147483647 and down to -2147483648.n2. Bignum - Represents arbitrarily large integers.n3. Float - Represents real numbers with decimal points.n4. String - Represents sequences of characters enclosed in single or double quotes.n5. Array - An ordered collection of elements, enclosed in square brackets.n6. Hash (or Hashable) - An unordered collection of key-value pairs, enclosed in curly braces.
| Is This Answer Correct ? | 0 Yes | 0 No |
how many ways you can create a concatenating string?
Explain Ruby hashes?
Explain about garbage collection feature of ruby?
Mention what is the difference between a gem and a plugin in ruby?
What is ruby?
What is the difference between a class and a module?
What is sysread method in Ruby?
what is the difference between String and Symbol?
What does irb stand for?
Tell me the role of modules and mixins in ruby?
Explain about the defined operator in ruby?
Tell me how can you declare a block in ruby?