Set - 9

Question 11 :

Can you store multiple data types in System.Array?

Answer :


Question 12 :

What's the top .NET class that everything is derived from?

Answer :



Question 13 :

What does the term immutable mean?

Answer :

The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.

Question 14 :

What's the difference between System.String and System.Text.StringBuilder classes?

Answer :

System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

Question 15 :

What's the advantage of using System.Text.StringBuilder over System.String? 

Answer :

StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created.