Strings

Q1:
Which of the following statements are correct?
  1. String is a value type.
  2. String literals can contain any character literal including escape sequences.
  3. The equality operators are defined to compare the values of string objects as well as references.
  4. Attempting to access a character that is outside the bounds of the string results in an IndexOutOfRangeException.
  5. The contents of a string object can be changed after the object is created.

A 1, 3

B 3, 5

C 2, 4

D 1, 2, 4

ANS:C - 2, 4

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.