Question: Which of the following statements will correctly copy the contents of one string into another ?

Options

A : String s1 = "String"; String s2; s2 = s1;

B : String s1 = "String" ; String s2; s2 = String.Concat(s1, s2);

C : String s1 = "String"; String s2; s2 = String.Copy(s1);

D : String s1 = "String"; String s2; s2 = s1.Replace();

Click to view Correct Answer

Previous || Next

Strings - General Questions more questions

Which of the following is the correct way to implement....

Which of the folowing does an indexer allow to index....

An Employee class has a property called age and emp....

Which of the following statements are true about the C#.NET....

Which of the following will be the correct output for....

The string built using the String class are immutable (unchangeable),....

Which of the following snippets are the correct way to....

Which of the following will be the correct output for....

Which of the following is correct way to convert a....

Which of the following statement is correct about a String....

Arrays - General Questions more Online Exam Quiz

Floating Point Issues - General Questions

Attributes - General Questions

Classes and Objects - General Questions

Collection Classes - General Questions