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 the difference between a single quote and double quote?



Explain the difference between a single quote and double quote?..

Answer / Tarakeshwar Kumar Puri

In Ruby, single quotes (') create strings that ignore escape sequences and do not interpret special characters. Double quotes (") create strings that do interpret escape sequences and allow for interpolation of variables using #{variable_name}. Single quotes are generally faster because they don't need to parse the string for variable substitution.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain about class libraries in ruby?

1 Answers  


Is ruby whitespace-dependent?

1 Answers  


Do you know when self.up and self.down method is used?

1 Answers  


What are some built-in ruby class exceptions.

1 Answers  


What happens when a value is too big for fixnum?

1 Answers  


Please explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


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

1 Answers  


Please explain the three levels of access control for ruby methods?

1 Answers  


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

1 Answers  


Is ruby a statically typed or a dynamically typed language?

1 Answers  


What does mri most commonly stand for?

1 Answers  


What things we can define in the model?

1 Answers  


Categories