Q. What will be the output of the following C# code?

Code:
static void Main(string[] args)
{
    string s1 = "Delhi";
    string s2;
    s2 = s1.Insert (6, "Jaipur");
    Console.WriteLine(s2);
}
  • (A) DelhJaipuri
  • (B) Delhi Jaipur
  • (C) Delhi
  • (D) DelhiJaipur
πŸ’¬ Discuss
βœ… Correct Answer: (D) DelhiJaipur

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
347
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Shivam
Publisher
πŸ“ˆ
92%
Success Rate