Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Strings
Which of the following statements will correctly copy the contents of one string into another?
String s1 = "String"; String s2; s2 = s1;
String s1 = "String" ; String s2; s2 = String.Concat(s1, s2);
String s1 = "String"; String s2; s2 = String.Copy(s1);
String s1 = "String"; String s2; s2 = s1.Replace();
String s1 = "String"; String s2; s2 = s2.StringCopy(s1);
Show Answer
Correct Answer:
String s1 = "String"; String s2; s2 = String.Copy(s1);
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment