Αυτό το πρόγραμμα περιήγησης δεν υποστηρίζεται πλέον.
Κάντε αναβάθμιση σε 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.
Ήταν χρήσιμη αυτή η σελίδα;
Χρειάζεστε βοήθεια σχετικά με αυτό το θέμα;
Θέλετε να δοκιμάσετε να χρησιμοποιήσετε την επιλογή Ρωτήστε το Learn για να σας καθοδηγήσει σε αυτό το θέμα;