1.

Select the namespace/namespaces which consists of methods like Length(), Indexer(), Append() for manipulating the strings.(a) System.Class(b) System.Array(c) System.Text(d) None of the mentionedI got this question during an interview for a job.The question is from Writing Console Output Operations topic in section Console I/O Operations and Stream Classes of C#

Answer»

The correct OPTION is (c) System.Text

Explanation: The system.text NAMESPACE CONTAINS the Stringbuilder class and hence MUST include USING system.text for manipulating the mutable strings.



Discussion

No Comment Found

Related InterviewSolutions