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

what is the difference between put and putc statement?

1 Answers  


What is the difference between a class and a module?

1 Answers  


What is concatenating string in ruby. In how many ways you can create a concatenating string.

1 Answers  


What are the data types in ruby?

1 Answers  


what is the difference between a gem and a plugin in Ruby?

1 Answers  


Mention what is the command to create a migration?

1 Answers  


Explain about interpolation?

1 Answers  


Is ruby whitespace-dependent?

1 Answers  


How to create a new time instance in Ruby?

1 Answers  


Explain the difference between a single quote and double quote?

1 Answers  


what the difference is between false and nil in Ruby?

1 Answers  


What are blocks and procs?

1 Answers  


Categories