Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain about variables?



Explain about variables?..

Answer / Krishna Kumar Tiwari

Variables in Ruby are containers for storing values. Variables can be assigned values using the '=' operator and should follow naming conventions mentioned earlier (e.g., @variable_name). There are different types of variables: instance variables (@variable), class variables (@@variable), local variables (variable), and global variables ($variable).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain retry statement in ruby.

1 Answers  


Explain the use of retry statement in ruby?

1 Answers  


Is ruby a statically typed or a dynamically typed language?

1 Answers  


Tell me can you call a private method outside a ruby class using its object?

1 Answers  


Tell us the types of variables available in ruby class?

1 Answers  


What is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


Why Ruby is known as a language of flexibility?

1 Answers  


Explain about normal method class?

1 Answers  


How ruby looks up a method to invoke?

1 Answers  


Tell me how symbol is different from variables?

1 Answers  


What is the difference between calling super and calling super()?

1 Answers  


Explain me what the difference is between false and nil in ruby?

1 Answers  


Categories