Select chapter



Basics (2.papers)
Data Types (2.papers)
enums (2.papers)
OOPS (4.papers)
Arrays (1.papers)
Structs (2.papers)
Properties (2.papers)
Strings (2.papers)
Interfaces (1.papers)
Constructors (2.papers)
Ref-Out-Keywords (1.papers)
Collections (2.papers)
Generics (1.papers)
Hide

Sponsored Links


  

c# strings interview questions and answers

1
What is StringBuilder in C# ?
  1. StringBuilder in C# is a class which is used for manipulating string content (for appending as well as for removing content) and StringBuilder is mutable.
  2. StringBuilder is a static class in C#.
  3. StringBuilder is same as string.
  4. None of the above points are valid for StringBuilder.
Show Answer
Share Facebook gmail Twitter
2
Why is stringbuilder's Append method is more efficient than simple string concatenation ?
  1. StringBuilder is mutable,string is immutable.
  2. StringBuilder is immutable,string is mutable.
  3. Strings will store in heap,StringBuilders will store in stack.
  4. None of the above.
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
4
StringBuilder is present in which namespace ?
  1. System
  2. System.IO
  3. System.Text
  4. None of the above.
Show Answer
Share Facebook gmail Twitter
Read more papers :