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


Where does a scope change in a ruby program?



Where does a scope change in a ruby program?..

Answer / Abhinav Pal

Scope in Ruby changes when you define new variables, methods, classes, or instances, as well as when blocks (such as `do...end` or `{}`) are started or ended. In Python, the scope changes similarly with variable and function definitions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Are ruby strings are mutable?

1 Answers  


what is class libraries in Ruby?

1 Answers  


How many iterators are there in ruby?

1 Answers  


What is the use of interpolation in ruby?

1 Answers  


Explain when self.up and self.down method is used?

1 Answers  


what the difference is between false and nil in Ruby?

1 Answers  


What is the naming conventions for methods that return a boolean result?

1 Answers  


Explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


In how many ways items can be removed from array in Ruby?

1 Answers  


what is the purpose of the rakefile available in the demo directory in ruby?

1 Answers  


Tell us what is class libraries in ruby?

1 Answers  


Explain next statement in ruby.

1 Answers  


Categories