Seda brauserit enam ei toetata.
Uusimate funktsioonide, turbevärskenduste ja tehnilise toe kasutamiseks võtke kasutusele Microsoft Edge.
Which of the following escape sequences should be used to add double quotes to a literal string in C# code?
'\q'
\q
'\''
\'
'\"'
\"
Which of the following lines of code correctly uses string interpolation assuming that the variable value is a string?
value
'Console.WriteLine(@"My value: {value}");'
Console.WriteLine(@"My value: {value}");
'Console.WriteLine($"My value: {value}");'
Console.WriteLine($"My value: {value}");
'Console.WriteLine(@"My value: [value]");'
Console.WriteLine(@"My value: [value]");
Unicode characters were embedded in the C# strings for a console application to present a greeting message in Thai. However, the message is only displayed as question mark characters. What is a possible cause?
A missing \u escape sequence for Unicode characters.
The wrong Unicode characters were used.
The user's console doesn't support Unicode characters.
Which of the following lines of code appends a single \ to the string directory?
\
directory
'directory = directory + "\";'
directory = directory + "\";
'directory = directory + '\';'
directory = directory + '\';
'directory = directory + @"\";'
directory = directory + @"\";
You must answer all questions before checking your work.
Kas sellest lehest oli abi?
Kas vajate selle teemaga seoses abi?
Kas soovite selle teema selgitamiseks või juhendamiseks kasutada funktsiooni Ask Learn?