MCQs > IT & Programming > C# > What is the output if following code executed? static void Main(string[] args){ String obj = 'sample'; String obj1 = 'program'; String obj2 = obj; Console.WriteLine(obj + ' ' + obj1); string s = obj + ' ' + obj1; Console.WriteLine(s.Length); Console.ReadLine(); }

C# MCQs

What is the output if following code executed? static void Main(string[] args){ String obj = "sample"; String obj1 = "program"; String obj2 = obj; Console.WriteLine(obj + " " + obj1); string s = obj + " " + obj1; Console.WriteLine(s.Length); Console.ReadLine(); }

Answer

Correct Answer: Sample program

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it