

MCQOPTIONS
Saved Bookmarks
1. |
Select output for the following set of code.
static void Main(string[] args) { string Name = "He is playing in a ground."; char[] characters = Name.ToCharArray(); StringBuilder sb = new StringBuilder(); for (int i = Name.Length - 1; i >= 0; --i) { sb.Append(characters[i]); } Console.Write(sb.ToString()); Console.ReadLine(); } |
A. | He is playing in a grou |
B. | .ground a in playing is He |
C. | .dnuorg a ni gniyalp si eH |
D. | He playing a |
Answer» D. He playing a | |