Jagged Arrays in C# Interview Questions 2019-2020-21 - 2

Question: 6

What is the difference between System.String and System.Text. String Builder classes?

System.String is immutable.

System.String Builder was designed with the purpose of having a mutable String where a variety of operations can be performed.

Question: 7

What are the three ways to perform string comparison in C#?

In C#, there are three ways to perform the string comparison.

Using Compare () method.

Using Equals () method.

Using = = operator.

Question: 8

Define Mutable string?

Strings are modifiable

Created using String Builder Class.

Question: 9

Define Immutable String?

Characters contained in the strings are not modified.

Created using system. String class.

Question: 10

What is called rank of the element?

The rank of an array represents the dimensions of an array. The left most pair of square brackets decide the rank of an array.

The rank of an array is one plus the number of commas in the left most pair of square brackets.

Related Questions
Recent Articles
Trending Posts

REGISTER TO GET FREE UPDATES