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

What function converts all html special symbols to html entities in ruby?

1 Answers  


What is the difference between nil and false in ruby?

1 Answers  


How to check whether a directory exist or not in Ruby?

1 Answers  


Tell me how you can create a controller for subject?

1 Answers  


How ruby looks up a method to invoke?

1 Answers  


Explain about the defined operator in ruby?

1 Answers  


Explain about environment variables present in ruby?

1 Answers  


What is the use of global variable $ in Ruby?

1 Answers  


Explain about normal method class?

1 Answers  


Which ruby interpreter option enables debugging?

1 Answers  


Ruby support single inheritance/multiple inheritance or both?

1 Answers  


What are the different environment variables present in the ruby?

1 Answers  


Categories