linkedin-skill-assessments-quizzes
linkedin-skill-assessments-quizzes copied to clipboard
C# new question
Hello @eikowagenknecht , thank you for submitting an issue! 👍 We highly appreciate it if you work on it as well.
Array slicing has been introduced in C# 8: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-8.0/ranges
But.. it seems to actually be "None of the above":
How do we enter broken questions?
@eikowagenknecht You are right, none of the options are correct. These options are correct (using range):
People[^2..]
People[^2..^0]
Maybe this question was made before C# 8.0 (September 2019)
Update: I edited examples. It seems I thought wrongly that the given array in the question has 3 elements in it.
Hi, just a short clarification. This question has appeared before as Q#67 in C-sharp assessment.
Even if that question would appear on version 1.0 it'd still be bad. Simple solution would be to use "None of the above" as an answer rather than "You can't do this..."
people[..^2]
as a solution/workaround we could add detailed explanation to this question and close this issue?
I just unchecked the current chosen answer (which is obviously wrong) and added some explanations about the question and added a reference link to the current issue thread.