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...


What is the difference between a statement and an expression in ruby?



What is the difference between a statement and an expression in ruby?..

Answer / Shivani Goyal

In Ruby, a statement ends with a semicolon (;) or a newline. It performs an action such as assigning a value to a variable or calling a method. An expression also performs an operation but it returns a value. In Ruby, most statements are expressions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How would you freeze an object in ruby? Can you provide a simple example?

1 Answers  


How to open a file in Ruby?

1 Answers  


Who is the developer of Ruby?

1 Answers  


Explain ruby class.

1 Answers  


Explain raise statement in Ruby?

1 Answers  


Tell me what does ruby name refers to?

1 Answers  


What must you do first before you can invoke an unboundmethod object?

1 Answers  


What is ruby software and where and when it is usefull.

1 Answers  


How will you comment in ruby.

1 Answers  


Tell me what is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


Tell me how symbol is different from variables?

1 Answers  


Are ruby strings are mutable?

1 Answers  


Categories