Which string operation does the below-mentioned method define?

public static string Concat(string str0, string str1)

a) method returns a string
b) string str1 is concatenated to the end of str0
c) can be used to concatenate any number of strings
d) all of the mentioned

1 thought on “Which string operation does the below-mentioned method define?”

  1. d
    Explanation: This method returns a string that contains str1 concatenated to the end of str0. Another form of Concat(), shown here, concatenates three strings:
    public static string Concat(string str0, string str1, string str2). Hence, any number of strings can be concatenated using this method.

Leave a Comment