• +91 9723535972
  • info@interviewmaterial.com

Ruby Interview Questions and Answers

Question - What is concatenating string in Ruby. In how many ways you can create a concatenating string.

Answer -

Ruby concatenating string implies creating one string from multiple strings. You can join more than one string to form a single string by concatenating them.

There are four ways to concatenate Ruby strings into single string:

  • Using plus sign in between strings.
  • Using a single space in between strings.
  • Using << sign in between strings.
  • Using concat method in between strings.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners