Skip to content
Quiz · Strings · lesson 6 of 10

Quiz — ToUpper without assignment

What does the program print (lines separated by spaces)?

C#
string s = "abc";
s.ToUpper();
Console.WriteLine(s);
s = s.ToUpper();
Console.WriteLine(s);